Commits
Click on a commit to change the comparison rangefix: cancel orphaned flow runs when deployment is deleted during concurrency wait
When a flow run is waiting in AwaitingConcurrencySlot state and its deployment
is deleted, the worker would previously keep polling the run indefinitely. The
server's SecureFlowConcurrencySlots rule returns an ABORT when the deployment
doesn't exist, but the worker only logged this and returned False, leaving the
run stuck.
This fix cancels the run when we receive a "Deployment not found" abort,
preventing the infinite polling loop and giving users visibility that the run
was terminated due to deployment deletion.
Also adds regression tests for:
- Server correctly updating next_scheduled_start_time on concurrency rejection
- Worker cancelling runs on deployment-not-found abort
- Worker NOT cancelling runs for other abort reasons (like concurrency limit=0)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>15 hours ago
by zzstoatzz