feat: reconcile persisted Slurm state - #913
Open
nabinchha wants to merge 1 commit into
Open
Conversation
Contributor
Greptile SummaryThis PR adds fresh-process reconciliation of persisted Slurm runs using normalized queue and accounting evidence.
|
| Filename | Overview |
|---|---|
| packages/data-designer-slurm/src/data_designer/slurm/state/observation.py | Adds normalized scheduler collection with accounting precedence, immutable terminal evidence, and bounded accounting-lag transitions. |
| packages/data-designer-slurm/src/data_designer/slurm/state/observer.py | Adds orchestration for loading persisted state, collecting and persisting observations, validating shard evidence, and composing run status. |
| packages/data-designer-slurm/src/data_designer/slurm/state/reader.py | Adds optional validated reads for readiness, scheduler observations, and generation-result pairs. |
| packages/data-designer-slurm/src/data_designer/slurm/state/status.py | Adds validated attempt, shard, generation, and run status models and deterministic aggregation helpers. |
| packages/data-designer-slurm/src/data_designer/slurm/state/storage.py | Adds restrictive atomic storage operations for per-attempt scheduler observations. |
| packages/data-designer-slurm/src/data_designer/slurm/launcher/client.py | Adopts the public scheduler-job identity type across queue, accounting, cancellation, and result-correlation APIs. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Load persisted run, plan, shards, and attempts] --> B[Load previous scheduler observations]
B --> C[Query normalized squeue and sacct evidence]
C --> D[Resolve current observation per scheduler identity]
D --> E[Lock and reconcile each shard]
E --> F[Persist scheduler observations]
F --> G[Validate readiness, generation results, and winner]
G --> H[Derive attempt and shard statuses]
H --> I[Compose complete RunStatus]
Reviews (7): Last reviewed commit: "feat: reconcile persisted Slurm state" | Re-trigger Greptile
9 tasks
nabinchha
force-pushed
the
codex/869-observation-reconciliation
branch
from
September 3, 2026 13:58
28e7efe to
1300bc0
Compare
nabinchha
force-pushed
the
codex/869-candidate-winner
branch
from
September 3, 2026 15:29
a3eac05 to
37ed0f4
Compare
nabinchha
force-pushed
the
codex/869-observation-reconciliation
branch
from
September 3, 2026 15:29
1300bc0 to
a4f4035
Compare
nabinchha
force-pushed
the
codex/869-candidate-winner
branch
from
September 3, 2026 15:40
37ed0f4 to
b17e493
Compare
nabinchha
force-pushed
the
codex/869-observation-reconciliation
branch
from
September 3, 2026 15:41
a4f4035 to
91129f8
Compare
13 tasks
nabinchha
force-pushed
the
codex/869-observation-reconciliation
branch
from
September 3, 2026 20:21
91129f8 to
57e9671
Compare
nabinchha
force-pushed
the
codex/869-candidate-winner
branch
from
September 3, 2026 20:39
cf749b6 to
10353c8
Compare
nabinchha
force-pushed
the
codex/869-observation-reconciliation
branch
from
September 3, 2026 20:40
57e9671 to
b00ccb1
Compare
nabinchha
changed the base branch from
codex/869-candidate-winner
to
feat/slurm-execution
September 3, 2026 22:13
Persist normalized scheduler observations and compose fresh-process run, shard, attempt, readiness, generation, and winner status. Preserve bounded accounting lag and immutable terminal evidence for status and benchmark refresh consumers. Part of #869 Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
nabinchha
force-pushed
the
codex/869-observation-reconciliation
branch
from
September 3, 2026 22:16
b00ccb1 to
506de48
Compare
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.
📋 Summary
Reconcile a persisted Slurm run from normalized active-queue and accounting observations in a fresh process. The status composition preserves bounded accounting lag and terminal evidence, validates readiness and generation records, and refuses to report a winner when scheduler evidence contradicts it.
🔗 Related Issue
Part of #869 (869#3).
🔀 Merge Order
PR #910 has merged into
feat/slurm-execution. This PR is now the direct follow-up slice on that branch and is rebased onto the merged #910 commit (b98c043e). Child PR #915 remains based on this branch and must stay open.🔄 Changes
squeue/sacctclient contract, including array-task and ordinary collection-job identities.SlurmStateReconciler.🧪 Testing
make check-slurm✅ Checklist
Description updated with AI