Repository navigation
LS-59: reconcile uncertain stop submissions and retry once - #31
Merged
Merged
Conversation
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Require the original compute identity for retries and keep the scheduler from rewriting unchanged stop state. Exercise the full supervisor invocation in the stop fixtures.
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.
A lost stop-control submission receipt could leave a task stopping indefinitely. Wait at least 60 seconds and resend the original control command at most once, only after a reliable scan finds no exact receipt on the original allocation. Persist the retry budget and audit together before calling the platform.
Continue collecting matching receipts and checking every known control job after binding a job ID. Read each receipt, job status, and log independently: a damaged or unreadable entry blocks resending while other readable receipts, exit states, and logs remain visible. Preserve previously read logs during later read failures. Report ambiguous receipts or any exited control job without a valid stop proof, and accept late valid proofs. Keep these messages and the exhausted-retry notice visible through both cycle syncs. Initial stop submission errors explain the conditional retry opportunity instead of saying retries have stopped.
Preserve the supervisor's 15-second fallback window and give legacy records a full 60-second takeover window. Compute submission, GPU requests, and release paths retain their existing behavior. Changes are limited to
gpuqueue/service.pyandtests/test_stop.py.Validation:
python -m unittest discover -s tests -p 'test_*.py' -vpassed all 174 tests, including 39 stop tests, on Python 3.10.22 and Python 3.12.3, using isolated temporary HOME directories and mocked platform operations. Five focused tests reproduce the reader failures against the previous service. Test logs with source hashes and the delivered head, plus the baseline reproduction log, are attached to LS-59.git diff --checkpassed.CI: current-head check failed before unit tests in the inherited release-ancestor gate. That gate requires
b9e2c3e678fc2afa6eb5bf35ab20cc8d3587bd78to be an ancestor of the head, while the specifiedmain@af51af510197d921b0cfd4452539e99ff04cd8e8baseline itself does not satisfy that check. Both failures were locally reproduced. The skipped workflow test step selects onlytest_gpuqueue.py. No live GPU, Feishu owner account, or macOS WebKit acceptance was performed; no merge or deployment.Closes LS-59
Task: LS-59