get_local_config
Submodule to handle the local-backend configuration for a WorkflowTask
get_local_backend_config(shared_config, wftask, which_type, tot_tasks=1)
¶
Prepare a specific LocalBackendConfig configuration.
The base configuration is the runner-level shared_config object, based
on resource.jobs_runner_config. We then incorporate attributes from
wftask.meta_{non_parallel,parallel} - with higher priority.
| PARAMETER | DESCRIPTION |
|---|---|
shared_config
|
Configuration object based on
TYPE:
|
wftask
|
WorkflowTaskV2 for which the backend configuration should be prepared.
TYPE:
|
which_type
|
Whether we should look at the non-parallel or parallel part
of
TYPE:
|
tot_tasks
|
Not used here, only present as a common interface.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
JobRunnerConfigLocal
|
A ready-to-use local-backend configuration object. |
Source code in fractal_server/runner/executors/local/get_local_config.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |