Repository navigation
Auto-cancel jobs stuck as RUNNABLE - #547
Merged
Merged
Conversation
This prevents jobs from being stuck as RUNNABLE indefinitely due to misconfiguration.
victorlin
force-pushed
the
victorlin/auto-cancel
branch
from
October 9, 2026 22:38
a2b2047 to
d4dfd6d
Compare
This is useful both in absence of and in addition to any job state limits set on the job queue. Stopped job handling now considers auto-canceled jobs in addition to user-sent interrupts.
Even with auto-canceling mitigations in place, the failed status reason can be cryptic to users. Provide more context and a hint to next steps.
victorlin
force-pushed
the
victorlin/auto-cancel
branch
from
October 14, 2026 23:23
d4dfd6d to
4729e3f
Compare
Member
Author
|
I'll plan to merge and release this tomorrow. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR closes #546 by implementing solutions 2 and 3 described in the issue.
Scenario 1: User stays attached
Job gets auto-canceled when AWS Batch updates the status reason as "misconfiguration". Example output:
Scenario 2: User detaches after submitting
Job queue has
jobStateTimeLimitActionsconfigured so it auto-cancels after 10 minutes. Upon reattaching, we see the helpful message. Example:Checklist