Skip to content

Print SLURM job IDs and the receipt path after submission - #25

Open
florian6973 wants to merge 1 commit into
mainfrom
print-slurm-job-ids
Open

florian6973 wants to merge 1 commit into
mainfrom
print-slurm-job-ids

Conversation

@florian6973

Copy link
Copy Markdown
Collaborator

Why

After my-algorithm run execution=slurm …, the runner printed only Submitted: <output_dir>. The job IDs were recorded, but only in <output_dir>/submission.json, so users had to go looking for them.

What

After a SLURM submission, the runner now prints each stage's job ID and where they are recorded:

Submitted: /runs/curiosity/run1
  preprocess_data                 job 1896457
  pretrain                        job 1896458
  infer_trajectories              job 1896459
  predict_zero_shot_materialized  job 1896460
Job IDs are recorded in /runs/curiosity/run1/submission.json; step logs are in /runs/curiosity/run1/logs.
  • The output is built from the submission.json receipt, so it always matches what was submitted.
  • Local runs still print Completed: <output_dir>.
  • ORCHESTRATION.md mentions the printed IDs.

Tests

  • New: test_slurm_submission_prints_job_ids_and_receipt.
  • WSL Ubuntu, Python 3.12: ruff check and ruff format --check are clean; pytest -q: 162 passed.

🤖 Generated with Claude Code

The runner printed only 'Submitted: <output_dir>', so job IDs had to be
looked up in submission.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJQdbHt5icm1CgFVHsHTNx

This branch has not been deployed

No deployments
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.

1 participant