Skip to content

_local

JobRunnerConfigLocal

Bases: BaseModel

Specifications of the local-backend configuration

Attributes:

Name Type Description
parallel_tasks_per_job int | None

Maximum number of tasks to be run in parallel as part of a call to FractalThreadPoolExecutor.map; if None, then all tasks will start at the same time.

Source code in fractal_server/runner/config/_local.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
class JobRunnerConfigLocal(BaseModel):
    """
    Specifications of the local-backend configuration

    Attributes:
        parallel_tasks_per_job:
            Maximum number of tasks to be run in parallel as part of a call to
            `FractalThreadPoolExecutor.map`; if `None`, then all tasks will
            start at the same time.
    """

    model_config = ConfigDict(extra="forbid")
    parallel_tasks_per_job: int | None = None

    @property
    def batch_size(self) -> int:
        return self.parallel_tasks_per_job or 1