runtraj.execution.PbsConfig#
- class runtraj.execution.PbsConfig(*, cpus: Annotated[int, Ge(ge=1)] = 1, fetch: Literal[False] = False, n_workers: Annotated[int, Ge(ge=1)] = 1, n_tasks: Annotated[int | None, Ge(ge=1)] = None, walltime: str | int | None = None, mem: str | None = None, queue: str | None = None, account: str | None = None, setup: list[str] = <factory>, **extra_data: Any) None[source]#
The PBS job array a project’s releases run as: the
pbsblock ofexecution.As on Slurm, the releases are split among
n_tasksarray tasks (subjobs), at mostn_workersrunning at once, and each task runscpusof them at once. The settings use PBS’s own names where it has them. Any key that is not a setting below is a PBS resource by its name, written as#PBS -l <key>=<value>, such asplace: scatter;selectreplaces the chunk runtraj asks for (1:ncpus=<cpus>:mem=<mem>), for a resource a chunk must name, such asngpus.PBS sends no notice before
walltime, and a user cannot put a subjob back in the queue, so a task that runs out of time stays stopped: run the project again, and it skips what finished. A task that PBS preempts is put back by PBS itself (the job is rerunnable,-r y). There is no fetch job: each task downloads the met files its releases lack, so get them first withruntraj fetchwhen many tasks share them.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Releases each subjob runs at once, and the CPUs ( |
|
|
PBS runs have no fetch job: each subjob gets the met files it lacks. |
|
|
Most subjobs running at once ( |
|
|
Number of subjobs, which the releases are split evenly among. Unset, ten per worker. Never more than one per release, nor more than the server’s |
|
|
Time limit per subjob, as |
|
|
Memory per subjob, such as |
|
|
PBS queue ( |
|
|
Project or account to charge ( |
|
|
Shell commands run in each subjob before the worker, such as |
|
Attributes#
Methods#
|
Raise when the subjobs have no walltime. |