_pixi
| CLASS | DESCRIPTION |
|---|---|
PixiSLURMConfig |
Parameters that are passed directly to a |
TasksPixiSettings |
Configuration for |
Attributes
Classes
PixiSLURMConfig
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(PixiMemoryStr | None) -
mem_per_cpu(PixiMemoryStr | None) -
time(NonEmptyStr) -
preamble(list[str])
Validators:
-
_memory_validator
Source code in fractal_server/tasks/config/_pixi.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".
TasksPixiSettings
pydantic-model
Bases: BaseModel
Configuration for pixi Task collection.
Fields:
-
versions(DictStrStr) -
default_version(str) -
PIXI_CONCURRENT_SOLVES(int) -
PIXI_CONCURRENT_DOWNLOADS(int) -
TOKIO_WORKER_THREADS(int) -
DEFAULT_ENVIRONMENT(str) -
DEFAULT_PLATFORM(str) -
SLURM_CONFIG(PixiSLURMConfig | None)
Validators:
-
check_pixi_settings
Source code in fractal_server/tasks/config/_pixi.py
Attributes
DEFAULT_ENVIRONMENT = 'default'
pydantic-field
Default pixi environment name.
DEFAULT_PLATFORM = 'linux-64'
pydantic-field
Default platform for pixi.
PIXI_CONCURRENT_DOWNLOADS = 4
pydantic-field
Value of
--concurrent-downloads
for pixi install.
PIXI_CONCURRENT_SOLVES = 4
pydantic-field
Value of
--concurrent-solves
for pixi install.
SLURM_CONFIG = None
pydantic-field
Required when using pixi in a SSH/SLURM deployment.
TOKIO_WORKER_THREADS = 2
pydantic-field
From Tokio documentation :
1 2 3 4 | |
default_version
pydantic-field
Default task-collection pixi version.
versions
pydantic-field
Dictionary mapping pixi versions (e.g. 0.47.0) to the corresponding
folders (e.g. /somewhere/pixi/0.47.0 - if the binary is
/somewhere/pixi/0.47.0/bin/pixi).