Repository navigation
LS-58: allow blocked tasks to stop after verified shutdown - #28
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>
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.
Blocked tasks can request a stop through the existing task page and version-bound API. Requests stay idempotent across restarts. Missing, conflicting or unverified execution evidence keeps the task visibly pending and continues to block queue admission and deletion. A matching exit proof or authoritative closure of the original allocation confirms the stop, allowing the next authorized task to pass the existing resource checks and permitting single-record deletion while retaining dispatch records, logs, outputs and audit history.
Recovery distinguishes an application-stage GPU UUID from the persisted execution identity. A version-bound dispatch marker can recover the reused GPU selected before a database-save crash; conflicts with an already persisted execution identity remain blocked. Confirmed stops still import normal completion, outputs and logs from a late unique compute receipt without rewriting the original dispatch record or reoccupying the queue. The stop API immediately replaces stale dispatch text with the pending reason across detail tabs.
Deletion checks the durable stop request and confirmation even when late results restore the completed display. Batch cleanup keeps its existing completed/cancelled state filter. Late result enrichment runs on a copy: malformed status data, read errors or unreadable logs retain the confirmed snapshot and a deduplicated diagnostic event, allow other tasks to continue scheduling, and retry result enrichment on later cycles. Confirmation committed before a snapshot-save crash is recovered before result reads. Unconfirmed execution retains its existing fail-closed behavior.
Validation on head
7afcea04d4e519a129657f2dd53d380c87d949c9:python3 -m unittest discover -s tests -p 'test_*.py'; all 29 Node checks passed on this exact committed candidate with isolated CPU/mock fixtures. Python requires a local adapter redirecting only old fixtures'HOME/scratchtemporary directories into the writable workspace through a short socket path; HOME and production state remain unchanged. The issue's execution report records actual counts, exit codes, output and changed-file SHA-256 values.git diff --checkpasses. No CI orserverboxchanges.The CI check for this exact head failed before unit tests at the existing release-ancestor check. The workflow requires release
b9e2c3e678fc2afa6eb5bf35ab20cc8d3587bd78to be an ancestor; the unchanged baseaf51af510197d921b0cfd4452539e99ff04cd8e8and this candidate both return exit 1. Local results do not establish a passing CI run.Target:
main. No live GPU, Feishu owner, macOS WebKit, deployment or release validation was performed.Closes LS-58
工单:LS-58