Repository navigation
fix(executor): the spot-reclaim and capacity-wait requeues bind their wait (#1383) - #1387
Merged
Merged
Conversation
… wait (#1383) requeue_launch and capacity_wait passed $wait_secs (declared bigint, bound as i64) into make_interval(secs => ...), where Postgres infers float8. Every call therefore failed at parameter serialization: 'requeueing the row failed: error serializing parameter 0'. A spot reclaimed or capacity-starved try stayed running with no pod. Found by #561's drain on er-dev, where the dispatcher logged exactly that. Both statements now cast the parameter. pg_task_instances executes both (a stale id, so zero rows and no state change); with the cast reverted it fails with WrongType { postgres: Float8, rust: "i64" }. The analyser gap that let this plan cleanly is #1384. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 29, 2026 04:03 — with
GitHub Actions
Inactive
12 tasks done
This branch was previously deployed
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.
Closes #1383
What
requeue_launchandcapacity_waitcast$wait_secsto bigint insidemake_interval(secs => …). Without the cast Postgres infers float8 and every call failed at parameter serialization.Why
Found live by #561 on er-dev. A spot runner node was drained under a running
reconcile. The dispatcher saw the disruption and loggedrequeueing the row failed: error serializing parameter 028 times. The try stayedrunningwith no pod, so the job hung. The capacity-wait path (vCPU quota) is broken the same way. No test had ever executed either statement.Proof
make checkexit 0.pg_task_instancesnow executes both statements. With the cast reverted it fails withWrongType { postgres: Float8, rust: \"i64\" }, the production error.Risk & rollback
SQL text only; no schema or behaviour change other than the requeue now working. Rollback:
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-29T05:06:00Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: — 4c9a639, rust 46223070604 + frontend 46223070599 success
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46223070616
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — its own deploy 46223398608 failed (the same migrate-hook timeout behind my p3live job; the rerun then refused a stale image); the deploy of 7c43aea (run 46225900472) succeeded and contains this commit
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer success on 4c9a639
Donethrough the automation rather than byhand, and the issue closed: — Spot-reclaim and capacity-wait requeues fail at parameter serialization (make_interval infers float8) #1383 CLOSED by fix(executor): the spot-reclaim and capacity-wait requeues bind their wait (#1383) #1387 via automation
(a skill, a reference, memory) — or nothing new was learned: — memory long-dev-job-blocks-deploy-hook: a long dev job fails every deploy's migrate hook
Specific to this change
vanishedand relaunched aser-t-13b0239076c5491c1d9f-l2on a fresh spot node i-076b44d5, same try number (no try spent), instead of the 28 serialization failures beforeContext — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
After deploy, the stuck p3live job 01a22524… (reconcile try 1, k8s job er-t-13b0239076c5491c1d9f-l1) is the live re-check: the new dispatcher should requeue the orphaned try and the job should finish. The analyser gap is #1384.
🤖 Generated with Claude Code