Skip to content

fix(executor): launch each task with its own class's template — every class ran as S (#649) - #1289

Merged
athvin merged 1 commit into
mainfrom
fix/649-per-class-templates
Nov 27, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/649-per-class-templates

Conversation

@athvin

@athvin athvin commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Closes #649

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

The executor renders each attempt with its own class's Job template (ER_TASK_TEMPLATE_DIR → task-template-{S,M,L}.yaml), falling back to the default for a class with no file. Chart wires the directory.

#649 asked to observe an L run across two node classes. Driving one on er-dev showed it could never happen: the dispatcher only ever read task-template-S.yaml, so every class launched as S on runner-sm (evidence in the commit message: an "M" Job requesting 2 cpu/6Gi/40Gi; "L" re-runs on the same c5d.2xlarge).

Proof

  • Unit test: S/L files load, template_for returns each, a class with no file renders the default. make check: exit 0.
  • The acceptance observation (L tasks on runner-l, two node classes in one job) needs this deployed; it is the first "Specific" ledger item.

Risk & rollback

M and L tasks now get their real (larger) requests: more node cost per M/L task, bounded by the namespace quota (#653). A missing class file degrades to S, never disables the executor. git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:24d16c2e-fec6-49d8-9797-060338df4848 on brians-MacBook-Pro · 2026-11-27T02:52:41Z

Specific to this change

  • on er-dev 2026-11-27 (job 01a21ae6-2479-77d2-ad5a-398ebe98bdf3, org p3live): run_all_full at M, then init cleared at S, M and L — S/M attempts on runner-sm (c5d.2xlarge, spot; nodes i-01cd98…, i-03338…), L attempts on runner-l (c5ad.4xlarge, spot; i-064780…, i-05fee3…), labels sampled during the run; task rows carry each class and node. Before this fix the same L re-run sat on the 8-vCPU runner-sm node
  • the stale-lake init failure found along the way — deferred — run_all_full fails at init on a lake behind the catalog — the job does not reconcile the lake first #1288
Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

🤖 Generated with Claude Code

… class ran as S (#649)

The chart renders one Job template per class (task-template-{S,M,L}.yaml)
but the dispatcher was pointed at task-template-S.yaml alone, a Phase 2
stopgap that never got its Phase 3 follow-up. So every attempt — M and L
included — launched with S's requests (2 cpu, 6Gi, 40Gi spill) on the
runner-sm nodepool, while its task row and Job label said M or L.

Observed on er-dev 2026-11-27: p3live's run_all_full ran at "M" on one
c5d.2xlarge spot runner-sm node; the retained Job for an "M" task requested
2 cpu / 6Gi / 40Gi; clearing `match` at class L re-ran match→finish as "L"
on that same 8-vCPU node, which an L pod (12 cpu) cannot fit.

The executor now loads every task-template-<class>.yaml from
ER_TASK_TEMPLATE_DIR and renders the attempt's class, falling back to the
default template (ER_TASK_TEMPLATE_PATH) for a class with no file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit a1fc120 into main Nov 27, 2026
43 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 27, 2026 01:34 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 57326eaf Deployed Nov 27, 2026 by athvin via remove closed PR previews #85
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.

Observe an L-class run as three Jobs across two node classes

2 participants