Skip to content

feat(duckfleet): run one resolution task through remote compute (#1132) - #1154

Merged
athvin merged 5 commits into
mainfrom
issue/1132-duckfleet-task
Nov 21, 2026
Merged

athvin merged 5 commits into
mainfrom
issue/1132-duckfleet-task

Conversation

@athvin

@athvin athvin commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Closes #1132

Claimed by Codex session 01a1fb62-5950-78d2-982c-5ecb2cd40d30 on brians-MacBook-Pro.local at 2026-11-21T05:54:25.507574+00:00.
This open draft PR is the claim; closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

Extract golden-record generation into its own DAG task and allow an operator-selected DuckFleet backend for account datasets. Both account backends share survivorship SQL and atomic publication; the default remains embedded.

Why

Prove one complete task with temporary state and lake writes through the existing resolution job lifecycle.

Proof

Actual API → dispatcher → exec-task → DuckFleet integration passed: four golden records, sixteen lineage rows, matching evidence preserved, remote rerun equality, worker-history ID correlation, writer exclusion and terminal unsupported-capacity failure. make check and make check-e2e passed. The final candidate image also passed the real remote task proof and the controlled 65-second statement proof. Upstream dependency athvin/duck-fleet#125 merged as 6fd3e48; its tree matches the pinned proof. make check-duckfleet-task passed from a fresh checkout, and Clippy passed with disposable-proof. The final CI migration-report race passed on one failed-leg rerun and is tracked in #1155.

Risk & rollback

Remote selection is default-off and account-only. The added DAG node changes the structural fingerprint; old planned runs retain the existing incompatibility refusal. Production backend adoption remains gated by #1133/#1134. Remove the task policy for newly launched embedded tasks; reconcile uncertain remote outcomes before retrying. Revert the merge for the DAG change.

Post-merge ledger

Closed by: Codex · session 01a1fb62-5950-78d2-982c-5ecb2cd40d30 on brians-MacBook-Pro.local · 2026-11-21T07:45:11Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  1. Extract golden-record generation into its own DAG task, preserving the existing embedded pipeline behavior and downstream review/metrics work. Reuse the survivorship generators and declared override statements through the execution seam, with native temporary results and an explicit lake write transaction.
  2. Add an operator-selected, default-off remote backend for that task only. Resolve dataset bindings server-side, retain one remote session, validate resource capacity and bounded statement deadlines, and correlate job/task/attempt/query identities without exporting SQL or record data.
  3. Implement and link the upstream deadline support needed to exceed the assessed 60-second ceiling; pin and test the service revision. Refuse unsupported capacity and uncertain execution rather than falling back or replaying.
  4. Exercise the normal submission/executor lifecycle with disposable Postgres/DuckLake and actual DuckFleet. Compare embedded and remote golden records, lineage, unchanged matching evidence, reruns, transactional failure and writer exclusion; include a controlled statement lasting over 60 seconds.
  5. Run make check and relevant integration/supply-chain gates, record pilot limits and reproduction evidence, land the PR, verify deployed main, and close the post-merge ledger before DuckFleet: recover remote jobs safely after cancellation or worker loss #1133.

Discoveries

Measurements

  • scripts/duckfleet/task.py against upstream ac894b551e6d802e4c4f88422881c6aaac6e4f4b, worker image sha256:d00f37fe9e8d272e277b7becfd1e44c3f24fa9c2b3b9e53478a56c732a490040: 4 records, 16 lineage rows, 3 matching scores, 9 correlated queries; rerun, writer-exclusion and terminal capacity-failure checks passed.
  • Upstream scripts/test-long-deadline.py against the same image: 65.128 seconds with a 120-second deadline; 601 refused; one-second deadline settled timed_out after 65.203 seconds of blocking external I/O. No immediate cancellation or rollback guarantee is claimed.
  • Metrics retain the existing assembly duration label to respect the 64-series budget. Task/query identity remains on spans, with collector allowlist coverage.
  • Pre-existing upstream AWS deployment permission failure is tracked in Restore scoped deployment scale access for the AWS development harness duck-fleet#126 and rollout ticket DuckFleet: qualify the full API workflow and decide production rollout #1134. No production pilot is enabled here.

Files

@athvin
athvin marked this pull request as ready for review November 21, 2026 06:52
@athvin
athvin merged commit b784c21 into main Nov 21, 2026
65 of 67 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 21, 2026 07:05 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 9317d4c3 Deployed Nov 21, 2026 by athvin via remove closed PR previews #5
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.

DuckFleet: complete one resolution task with remote compute

2 participants