runtraj.ExecutionConfig#
- class runtraj.ExecutionConfig(*, backend: Literal['local', 'slurm', 'kubernetes']='local', local: runtraj.execution.config.LocalConfig = <factory>, slurm: runtraj.execution.config.SlurmConfig = <factory>, kubernetes: runtraj.execution.config.KubernetesConfig = <factory>, timeout: Annotated[int | None, Ge(ge=1)] = None, keep_workdir: bool = False) None[source]#
Where a project’s releases run, and with what resources.
backendnames the place, and every setting of that place is in the block of its name. Withbackend: localthe releases run on this machine as one task (LocalConfig). Withbackend: slurmthey are split among the tasks of one Slurm job array (SlurmConfig), and withbackend: kubernetesamong the pods of one indexed Job (KubernetesConfig). Only the blockbackendnames is read, so a config can hold several and be run either way.timeoutandkeep_workdirapply wherever a run happens. None of these settings change a result.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Where to run: on this machine ( |
|
|
How a local run goes ( |
|
|
The job array of a Slurm run ( |
|
|
The indexed Job of a Kubernetes run ( |
|
|
Time limit for one transport model run, in seconds. A run that exceeds it is stopped and recorded as a failed simulation, and the worker moves on. Unset waits indefinitely, so a hung run can hold a worker until its job ends. |
|
|
Keep every run’s workdir, as the transport model left it, under |
|