blue_cwl.core.config¶
Config definitions.
Classes
|
Config base class. |
|
Remote host config. |
|
Standard set of Slurm configuration parameters. |
- class blue_cwl.core.config.Config¶
Config base class.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- update(other)¶
Update config with other config.
- class blue_cwl.core.config.RemoteConfig(*, host: str)¶
Remote host config.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class blue_cwl.core.config.SlurmConfig(*, chdir: str | None = None, account: str | None = None, partition: str = 'prod', nodes: int | None = None, qos: Literal['', 'normal', 'longjob', 'bigjob', 'jenkins'] | None = None, ntasks: int | None = None, ntasks_per_node: int | None = None, cpus_per_task: int | None = None, mpi: str | None = None, mem: int | None = None, mem_per_cpu: str | None = None, constraint: str = 'cpu', exclusive: bool = False, time: str | None = None, dependency: str | None = None, job_name: str | None = None, output: str | None = None, array: str | None = None, wait: bool = False)¶
Standard set of Slurm configuration parameters.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- to_command_parameters() list[str]¶
Convert the config into slurm parameters.