run_workflow
Execute a SLURM workflow from a YAML file, running jobs in dependency order with independent jobs in parallel. Supports dry runs, job ranges, single-job execution, sweeps, and cluster defaults.
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``.
cluster: Cluster name (required; see ``list_clusters``). Its
configured defaults fill job fields the YAML leaves unset.
project: Project root (directory holding ``.srunx/config.toml``);
supplies project defaults and the mounts ``mount`` refers to.
mount: Optional project mount name, enabling mount-aware path
translation for ``work_dir`` / ``log_dir``. Requires an SSH
cluster and ``project``.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"yaml_path": "<yaml_path>"
},
"name": "run_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| mount | No | ||
| sweep | No | ||
| to_job | No | ||
| cluster | No | ||
| dry_run | No | ||
| project | No | ||
| from_job | No | ||
| yaml_path | Yes | ||
| single_job | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||