Skip to content

Add timeout and process cleanup to igor.exe invocations - #327

Merged
sihammill merged 2 commits into
developfrom
Add-timeout-and-process-cleanup-to-igor.exe-invocations
Jul 14, 2026
Merged

Add timeout and process cleanup to igor.exe invocations#327
sihammill merged 2 commits into
developfrom
Add-timeout-and-process-cleanup-to-igor.exe-invocations

Conversation

@sihammill

Copy link
Copy Markdown
Contributor
  • Igor.exe can get stuck endlessly retrying a runtime download (e.g. network/CDN issue), and run_and_capture had no timeout — it would hang until the outer CI job's timeout-minutes killed things, at which point the orphaned igor.exe process wasn't cleaned up (leaving a Terminate batch job (Y/N)? prompt on the runner).
  • run_and_capture now accepts an optional timeout. On timeout, or if the task is cancelled (e.g. the CI job timeout firing), it kills the igor.exe process tree via the existing kill_process_tree helper and raises a clear TimeoutError instead of hanging silently.
  • Wired a 5-minute IGOR_TIMEOUT_SECONDS cap into the three igor.exe calls (igor_get_license, igor_get_runtime_version, igor_install_runtime) that were vulnerable to this hang.

- Igor.exe can get stuck endlessly retrying a runtime download (e.g. network/CDN issue), and `run_and_capture` had no timeout — it would hang until the outer CI job's `timeout-minutes` killed things, at which point the orphaned igor.exe process wasn't cleaned up (leaving a `Terminate batch job (Y/N)?` prompt on the runner).
- `run_and_capture` now accepts an optional `timeout`. On timeout, or if the task is cancelled (e.g. the CI job timeout firing), it kills the igor.exe process tree via the existing `kill_process_tree` helper and raises a clear `TimeoutError` instead of hanging silently.
- Wired a 5-minute `IGOR_TIMEOUT_SECONDS` cap into the three igor.exe calls (`igor_get_license`, `igor_get_runtime_version`, `igor_install_runtime`) that were vulnerable to this hang.
@sihammill
sihammill requested a review from ksuchitra532 July 14, 2026 09:20
@sihammill
sihammill merged commit 7510841 into develop Jul 14, 2026
2 checks passed
@sihammill
sihammill deleted the Add-timeout-and-process-cleanup-to-igor.exe-invocations branch July 14, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants