_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/_local_config.py
36 37 38 39 40 41 42 43 44 45 46 47 |
|
LocalBackendConfigError
¶
Bases: ValueError
Local-backend configuration error
Source code in fractal_server/app/runner/v2/_local/_local_config.py
28 29 30 31 32 33 |
|
get_default_local_backend_config()
¶
Return a default LocalBackendConfig
configuration object
Source code in fractal_server/app/runner/v2/_local/_local_config.py
50 51 52 53 54 |
|
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/_local_config.py
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 109 110 111 112 113 114 115 116 117 118 |
|