_local_config
Submodule to handle the local-backend configuration for a WorkflowTask
LocalBackendConfig
¶
Bases: BaseModel
Specifications of the local-backend configuration
Attributes:
Name | Type | Description |
---|---|---|
parallel_tasks_per_job |
Optional[int]
|
Maximum number of tasks to be run in parallel as part of a call to
|
Source code in fractal_server/app/runner/v2/_local_experimental/_local_config.py
26 27 28 29 30 31 32 33 34 35 36 37 |
|
LocalBackendConfigError
¶
Bases: ValueError
Local-backend configuration error
Source code in fractal_server/app/runner/v2/_local_experimental/_local_config.py
18 19 20 21 22 23 |
|
get_default_local_backend_config()
¶
Return a default LocalBackendConfig
configuration object
Source code in fractal_server/app/runner/v2/_local_experimental/_local_config.py
40 41 42 43 44 |
|
get_local_backend_config(wftask, which_type, config_path=None)
¶
Prepare a LocalBackendConfig
configuration object
The sources for parallel_tasks_per_job
attributes, starting from the
highest-priority one, are
- Properties in
wftask.meta_parallel
orwftask.meta_non_parallel
(depending onwhich_type
); - The general content of the local-backend configuration file;
- The default value (
None
).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wftask |
WorkflowTaskV2
|
WorkflowTaskV2 for which the backend configuration should be prepared. |
required |
config_path |
Optional[Path]
|
Path of local-backend configuration file; if |
None
|
Returns:
Type | Description |
---|---|
LocalBackendConfig
|
A local-backend configuration object |
Source code in fractal_server/app/runner/v2/_local_experimental/_local_config.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|