Repository navigation
NR3: redeliver a job once, only while it is still queued - #23
Merged
Merged
Conversation
When the fixed sweeper first ran it redelivered the same 40 stranded deliveries three minutes running: each job stayed queued while its first runner booted, so every round launched another runner (~48 idle instances). The sweeper now asks GitHub (installation token, Actions: read) whether the job is still queued, and records each redelivery by job id in an SSM parameter: at most once per 4 minutes and 3 times in total per job. Tested against stubbed GitHub and SSM: exact 19-digit ids, not-queued and not-allowed jobs skipped, the second sweep backs off. Orun-Task: NR-4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to #19 and #21. On its first successful run the sweeper redelivered the same 40 stranded deliveries three minutes in a row. Each job stayed queued while its first runner booted, so each round launched another runner: about 48 idle instances, which then served orun-cloud#1732's lanes and flattered its start latency.
queued, using an installation token (the App already hasActions: read)./nimbus-runners/redelivery/state. A job is redelivered at most once per 4 minutes and 3 times in total.Tested against stubbed GitHub and SSM:
🤖 Generated with Claude Code