Commits
Click on a commit to change the comparison rangeFix FileExistsError in runner temp directory creation
This PR addresses a race condition that could occur when multiple runners
or workers attempt to create the same temporary directory simultaneously.
Changes:
- Make temp directory creation idempotent with exist_ok=True
- Make cleanup more tolerant with ignore_errors=True
- Add graceful shutdown for workers in run-once mode by tracking active run tasks
- Ensure workers wait for submitted runs to complete before teardown
This prevents the FileExistsError that was occurring when running deployments
with process workers, particularly in rapid succession or concurrent scenarios.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com> Merge branch 'main' into fix-runner-temp-dir-race-condition docs: refresh api ref anchors after worker changes (auto-generated)