_slurm
| CLASS | DESCRIPTION |
|---|---|
TasksSLURMConfig |
Parameters that are passed directly to a |
Attributes
Classes
TasksSLURMConfig
pydantic-model
Bases: BaseModel
Parameters that are passed directly to a sbatch command.
See https://slurm.schedmd.com/sbatch.html.
Fields:
-
partition(NonEmptyStr) -
cpus(PositiveInt) -
mem(MemoryStr | None) -
mem_per_cpu(MemoryStr | None) -
time(NonEmptyStr) -
preamble(list[str])
Validators:
-
_memory_validator
Source code in fractal_server/tasks/config/_slurm.py
Attributes
cpus
pydantic-field
`-c, --cpus-per-task=
mem = None
pydantic-field
--mem=<size>[units] (examples: "10M", "10G").
From sbatch docs: Specify the real memory required per node. Default
units are megabytes. Different units can be specified using the suffix
[K|M|G|T].
mem_per_cpu = None
pydantic-field
--mem-per-cpu=<size>[units] (examples: "10M", "10G").
From sbatch docs: Minimum memory required per usable allocated CPU.
Default units are megabytes. [..] The --mem, --mem-per-cpu and
--mem-per-gpu options are mutually exclusive.
partition
pydantic-field
-p, --partition=<partition_names>
preamble
pydantic-field
Lines to be included at the beginning of the SLURM submission script.
time
pydantic-field
-t, --time=<time>.
From sbatch docs: "A time limit of zero requests that no time limit be
imposed. Acceptable time formats include "minutes", "minutes:seconds",
"hours:minutes:seconds", "days-hours", "days-hours:minutes" and
"days-hours:minutes:seconds".