fix: leave a zombie for the next sweep when its scopes cannot be read

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FHGE3ynoAu6yrgeg4kLwL
This commit is contained in:
Ruben Fiszel
2026-10-02 20:46:37 +02:00
co-authored by Claude Opus 5.5
parent c770c5a7fc
commit b5bd70b2a5
2 changed files with 12 additions and 5 deletions
+2
View File
@@ -3744,6 +3744,8 @@ impl From<QueuedJobV2> for MiniCompletedJob {
// `QueuedJobV2` carries no args, and nothing reaches the restart gate
// through this conversion — the worker completes jobs from the pulled job.
build_binary_only: false,
// Nor scopes: a caller whose completion can re-run the job fills them in from
// `job_perms` while the job is still queued.
job_token_scopes: None,
}
}