Repository navigation
fix(scheduler): keep polling behind stuck fires without releasing ownership - #2277
Merged
Merged
Conversation
JAORMX
marked this pull request as draft
October 12, 2026 21:56
Decouple polling from lifetime-bounded fire admission, retain execution ownership through uncooperative cancellation, and expose overdue or uncertain work without declaring it complete. Fixes #2273 Co-authored-by: Mecatl <[email protected]>
Settle deliberate misfire skips, reject unresolved predecessors inside schedule stores, preserve successor state on late settlement, and bound rearm work. Cover takeover races, shutdown quarantine and durable delivery failure. Co-authored-by: Mecatl <[email protected]>
Use the published engine commit containing the atomic predecessor fence and matching conformance so standalone and workspace gates verify the same contract. Co-authored-by: Mecatl <[email protected]>
Reject stale or concurrent rearm decisions against successful, live, enabled or exhausted successors. Preserve the public signature while checking current eligibility under store locks or Redis CAS and strengthen takeover/conformance regressions. Co-authored-by: Mecatl <[email protected]>
Validate Redis's current outcome directly and use strict JSONL retry-history reads. Repin standalone engine consumers to the published atomic rearm contract. Co-authored-by: Mecatl <[email protected]>
Keep later conflicting error records in history without authorizing retries after success. Document conservative Redis upgrade behavior and verify reverse outcome ordering. Co-authored-by: Mecatl <[email protected]>
Pin the main-ancestral engine test helper from #2281 and switch all repaired store callers to RunClaimAndRetryConformance. Exercise standalone gRPC conformance through the repaired JSONL backend instead of the published legacy memory store. Co-authored-by: Mecatl <[email protected]>
JAORMX
force-pushed
the
fix/2273-scheduler-liveness
branch
from
October 13, 2026 12:25
ccaa508 to
7583d5b
Compare
JAORMX
marked this pull request as ready for review
October 13, 2026 13:04
Merged
2 tasks
10 of 14 tasks
This was referenced Nov 23, 2026
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.
Status
Rebased onto merged prerequisite #2281 (
36b6ca993). The engine dependency now points to that merged revision, and the unchanged publication check passes. All repaired store tests useRunClaimAndRetryConformance.Ready for review. CI is green on rebased head
7583d5b1e, including the full Test (race) check and the production execution profile. The ready-for-review CI run passed after one SDK-only retry for a prematurely closed transport stream: CI results.Summary
Fixes #2273.
Tests
The scheduler tests deliberately block work or cancellation, then verify unrelated admission, capacity limits, ownership retention, eventual cleanup, and notification recovery.
The shared store tests check records and atomic claim/retry operations across memory, JSONL, Redis, and gRPC. They do not launch or stop an executor. Standalone gRPC tests exercise the actual wire path against the repaired, test-owned JSONL backend, rather than the published engine's older memory-store implementation.
Passed locally after rebasing:
GOWORK=offconsumersThe complete local race task did not finish within its time budget; it is not counted as passed. Review confirmed that the rebase preserved the runtime fixes and safety assertions.
Compatibility and limits
Due/Listcalls ignore cancellation can still block polling.