Execution#

The execution layer unifies local runs, Slurm arrays, and Kubernetes workers behind one task model.

Executors#

stilt.execution.LocalExecutor

Local executor: runs simulations in-process (n=1) or across a process pool (n>1).

stilt.execution.SlurmExecutor

Fire-and-forget executor that submits Slurm array jobs via sbatch.

stilt.execution.KubernetesExecutor

Deploy batch-mode STILT pull workers as Kubernetes Jobs.

Queue helpers#

stilt.execution.pull_simulations

Drain pending simulations through atomic index claims.

stilt.execution.push_simulations

Execute an assigned list of simulations without claim polling.

stilt.execution.SimulationTask

Serialisable bundle of everything a worker needs to run one simulation.

stilt.execution.SimulationResult

Typed result contract returned by one worker-run simulation.