run_workflow
Execute a SLURM workflow defined in a YAML file. Runs jobs in dependency order, with support for partial execution, sweep configurations, and dry-run validation.
Instructions
Execute a SLURM workflow from a YAML file.
Jobs are executed in dependency order - independent jobs run in parallel,
dependent jobs wait for their prerequisites to complete.
Args:
yaml_path: Path to the YAML workflow file
from_job: Start execution from this job (skip earlier jobs)
to_job: Stop execution at this job (skip later jobs)
single_job: Execute only this specific job, ignoring dependencies
dry_run: If true, show what would be executed without actually running
args: Optional mapping merged over the YAML ``args`` section before
Jinja rendering. ``python:`` prefix values are rejected.
sweep: Optional sweep spec: ``{"matrix": {...}, "fail_fast": bool,
"max_parallel": int}``. When present, the request goes through
:class:`SweepOrchestrator` and the response contains
``sweep_run_id``.
mount: Optional mount name from the active SSH profile. When
provided, the run is routed through the configured cluster
adapter with mount-aware path translation for ``work_dir`` /
``log_dir``. When omitted (default), the run stays on the
local SLURM client — same behaviour as pre-5a.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaml_path | Yes | ||
| from_job | No | ||
| to_job | No | ||
| single_job | No | ||
| dry_run | No | ||
| args | No | ||
| sweep | No | ||
| mount | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||