Skip to content

LS-58: allow blocked tasks to stop after verified shutdown - #28

Merged
Ferryyer merged 4 commits into
mainfrom
agent/inspire-queue/2f12e1192fc3
Nov 25, 2026
Merged

Ferryyer merged 4 commits into
mainfrom
agent/inspire-queue/2f12e1192fc3

Conversation

@Ferryyer

@Ferryyer Ferryyer commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

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:

  • All 174 Python tests passed using 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/scratch temporary 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.
  • Regressions cover matching proof/closure, actual dispatch/save crash windows, completed results after closure, single and batch deletion after late completion, damaged job/runner status, malformed metadata, read failures, continued successor dispatch, recovery after repair, and confirmation/snapshot crashes. Earlier pending-stop, digest, audit, preservation and release-intent guards remain covered.
  • git diff --check passes. No CI or serverbox changes.

The CI check for this exact head failed before unit tests at the existing release-ancestor check. The workflow requires release b9e2c3e678fc2afa6eb5bf35ab20cc8d3587bd78 to be an ancestor; the unchanged base af51af510197d921b0cfd4452539e99ff04cd8e8 and 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

@Ferryyer
Ferryyer merged commit 5a56de7 into main Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant