Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

How to Submit a Workflow to Slurm

Submit a workflow specification to a Slurm-based HPC system with automatic scheduler generation.

Quick Start

torc submit-slurm --account <your-account> workflow.yaml

Torc will:

  1. Detect your HPC system (e.g., NREL Kestrel, Eagle)
  2. Match job requirements to appropriate partitions
  3. Generate Slurm scheduler configurations
  4. Submit everything for execution

Preview Before Submitting

Always preview the generated configuration first:

torc slurm generate --account <your-account> workflow.yaml

This shows the Slurm schedulers and workflow actions that would be created without submitting.

Requirements

Your workflow must define resource requirements for jobs:

name: my_workflow

resource_requirements:
  - name: standard
    num_cpus: 4
    memory: 8g
    runtime: PT1H

jobs:
  - name: process_data
    command: python process.py
    resource_requirements: standard

Options

# See all options
torc submit-slurm --help

See Also