Slurm run operations
The CLI prints readable labels and values by default. To get canonical JSON for scripts or agents, put --output json immediately after slurm, before the command. Errors are readable on stderr by default and retain structured JSON and the same exit codes in JSON mode.
You can also set DATA_DESIGNER_SLURM_OUTPUT=json for a script that calls several Slurm commands. The default remains human-readable when that variable is unset. In either mode, progress and optional image-job logs go to stderr with UTC display timestamps; do not parse them as the command result.
Resolve without submitting
Dry-run performs profile selection, image verification, builder-envelope loading, dependency resolution, plan compilation, runtime staging, and batch rendering. It does not call sbatch. Full builder and plugin validation runs later in the client environment. Because resolution is real, the selected workspace and registered images must already be available. Preview staging is temporary: dry-run does not create durable managed-run state, so its result cannot be resumed, inspected with status, or used as collection input.
Submit
A successful response includes run_id, state, plan_sha256, shard_count, and job_id. The package persists immutable inputs before submission and records scheduler identity after acceptance. Conflicting durable state is never overwritten.
In an interactive terminal, execute reports when it invokes sbatch with the rendered script on standard input. After Slurm accepts and releases the job, it prints a status command and a tail -F example for the first shard’s stdout and stderr. Logs appear only after the job receives an allocation. The invocation display omits exported environment details and is not a replay command; use --dry-run to inspect the rendered script. Do not submit again just because a job is pending.
Use --profile-file and --cluster on any command when the defaults are not appropriate.
For GPU allocation, tensor parallelism, replica counts, and array task concurrency, see Scale runs in Run Configuration. status reports the resulting run and shard state; topology is chosen in the run file before submission.
Inspect status
Status loads the managed run, queries active queue and accounting records for its known jobs, and reconciles those observations with persisted attempts, readiness, and shard winners. Accounting can lag after a job leaves the active queue; rerun status after the cluster accounting service catches up.
The response includes every shard in planned order. Use the attempt lifecycle and readiness details to distinguish queue wait, model startup, active generation, publication, terminal failure, and success.
Cancel
Cancellation selects only active job IDs recorded for the managed run. It is safe to call again when no managed jobs remain active.
Durable artifacts
Managed files are below <workspace_root>/runs/<run-id>:
- Authored and resolved configuration, dependency lock, runtime bundle reference, and run manifest
- Slurm stdout and stderr
- Attempt and readiness records
- Candidate results, shard winners, collection state, and output
Allocation-local scratch is deliberately absent after cleanup. The stable container path /run/data-designer-slurm is not a durable troubleshooting location.
For each shard, shards/<shard-id>/winner.json is the canonical pointer. Its candidate_manifest.path identifies the winning attempt’s output-manifest.json, which records the canonical dataset_path and output files. Do not identify results by recursively scanning attempt directories: failed and superseded attempts may retain valid-looking data files. The merge command validates these winner chains before creating a run-level dataset at the requested destination.
Use the Python service API
Public service methods apply the same validation, persistence, error model, and output contracts as the CLI.