fix: add timeout to AppInsights flush to prevent blocking process exit by ameyjain · Pull Request #1532 · UiPath/uipath-python
ameyjain
marked this pull request as ready for review
Run flush in a daemon thread with a 5s timeout so AppInsights telemetry never blocks process exit when the Azure endpoint is unreachable (e.g. Automation Suite / CI environments with restricted egress). Previously the synchronous flush blocked indefinitely on URLError retries, keeping the process alive and leaving eval runs stuck in "Running" state.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters