You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DuckFleet: recover remote jobs safely after cancellation or worker loss #1133
Sequence: 6 of 7 within this initiative. Depends on: #1132
Planning: unscheduled backlog; no delivery commitment or estimate until discovery/refinement. This sequence is not a product-wide stack rank; see #1008.
Customer / product need
As a customer, I need a failed or canceled run to have an understandable outcome and a safe recovery path, even when the compute service disconnects during a write.
Scope
Integrate remote failure classification with the existing job/task lifecycle. Cover admission refusal, transaction conflicts, timeouts, cancellation, expired sessions, gateway restarts and worker loss.
Acceptance criteria
A documented failure matrix distinguishes safe retry, terminal failure and unknown commit outcome; public job errors remain actionable and do not leak internal data.
A lost transaction can only be replayed at a proven safe boundary; no individual write is blindly retried after a transport failure or interrupted commit.
Fault injection before execution, during temporary work, during writes and around commit proves no duplicate customer-visible effects and no false success.
Cancellation reaches active compute, reaches a truthful terminal job state and releases sessions, isolated pods and reservations within documented bounds.
Restarted orchestration reconciles remote query evidence with task attempts and dataset state, including cases where outcome cannot yet be determined.
A retry cannot race another writer for the same dataset, and switching backends is refused until an unresolved remote attempt is reconciled.
Operational diagnostics correlate identifiers without exporting sensitive SQL literals, profiles or credentials.
Boundaries
Coordinate with #530 rather than redesigning all product retries. DuckFleet's retry_safe flag is evidence about a request/transaction, not permission to replay an entire ER job automatically.
Cleanup qualification dependency found during #1132: athvin/duck-fleet#129 tracks intermittent second-namespace deletion exceeding 300 seconds after #125 introduced 630-second termination grace. The same candidate passed PR Kubernetes CI; main workload/isolation checks passed before teardown timed out. Diagnose the actual terminating resources and distinguish prompt idle cleanup from intentionally active long-statement drain. Do not hide a shutdown hang by merely increasing a test timeout.
Claimed in draft PR #1157 at 2026-11-21T07:46Z by Codex session 01a1fb62-5950-78d2-982c-5ecb2cd40d30 on brians-MacBook-Pro.local. Closing the draft releases the claim. Reading the recovery contracts and cleanup dependency before implementation.
Activity
athvin commentedon Nov 21, 2026
Cleanup qualification dependency found during #1132: athvin/duck-fleet#129 tracks intermittent second-namespace deletion exceeding 300 seconds after #125 introduced 630-second termination grace. The same candidate passed PR Kubernetes CI; main workload/isolation checks passed before teardown timed out. Diagnose the actual terminating resources and distinguish prompt idle cleanup from intentionally active long-statement drain. Do not hide a shutdown hang by merely increasing a test timeout.
athvin commentedon Nov 21, 2026
Claimed in draft PR #1157 at 2026-11-21T07:46Z by Codex session 01a1fb62-5950-78d2-982c-5ecb2cd40d30 on brians-MacBook-Pro.local. Closing the draft releases the claim. Reading the recovery contracts and cleanup dependency before implementation.
feat(duckfleet): recover remote attempts from evidence, never replay (#…