Execution#

Most users only need model.run() or stilt run (Where To Run). The functions below do the work underneath.

The executors start that work on this machine, on Slurm, or on Kubernetes.

Worker functions#

stilt.execution.run_simulation

Run one simulation and copy its outputs into the project.

stilt.execution.run_receptor

Run every simulation of one receptor.

stilt.execution.run_receptors

Run a list of receptors, in this process or in a process pool.

stilt.execution.pull_receptors

Run receptors from the model's work queue until it is empty.

stilt.execution.SimulationResult

Outcome of one simulation run by a worker.

stilt.execution.ReceptorResult

Outcome of running every simulation of one receptor.

Executors#

stilt.execution.LocalExecutor

Run receptors on this machine, in one process or a process pool.

stilt.execution.SlurmExecutor

Run receptors as a Slurm job array submitted with sbatch.

stilt.execution.KubernetesExecutor

Run pull workers as a Kubernetes Job.