_submit_setup
Submodule to define _slurm_submit_setup, which is also the reference
implementation of submit_setup_call
.
_slurm_submit_setup(*, wftask, workflow_dir_local, workflow_dir_remote, which_type)
¶
Collect WorfklowTask-specific configuration parameters from different sources, and inject them for execution.
Here goes all the logic for reading attributes from the appropriate sources
and transforming them into an appropriate SlurmConfig
object (encoding
SLURM configuration) and TaskFiles
object (with details e.g. about file
paths or filename prefixes).
For now, this is the reference implementation for the argument
submit_setup_call
of
fractal_server.app.runner.v2.runner.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wftask |
WorkflowTaskV2
|
WorkflowTask for which the configuration is to be assembled |
required |
workflow_dir_local |
Path
|
Server-owned directory to store all task-execution-related relevant files (inputs, outputs, errors, and all meta files related to the job execution). Note: users cannot write directly to this folder. |
required |
workflow_dir_remote |
Path
|
User-side directory with the same scope as |
required |
Returns:
Name | Type | Description |
---|---|---|
submit_setup_dict |
dict[str, object]
|
A dictionary that will be passed on to
|
Source code in fractal_server/app/runner/v2/_slurm_ssh/_submit_setup.py
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 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 |
|