fix: add timeout to AppInsights flush to prevent blocking process exit by ameyjain · Pull Request #1532 · UiPath/uipath-python

@ameyjain ameyjain marked this pull request as ready for review

March 31, 2026 18:39

@ameyjain

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.