_utils
_customize_and_run_template(template_filename, replacements, script_dir, logger_name, prefix)
¶
Customize one of the template bash scripts.
| PARAMETER | DESCRIPTION |
|---|---|
template_filename
|
Filename of the template file (ends with ".sh").
TYPE:
|
replacements
|
Dictionary of replacements.
TYPE:
|
script_dir
|
Local folder where the script will be placed.
TYPE:
|
prefix
|
Prefix for the script filename.
TYPE:
|
Source code in fractal_server/tasks/v2/local/_utils.py
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 | |
check_task_files_exist(task_list)
¶
Check that the modules listed in task commands point to existing files.
| PARAMETER | DESCRIPTION |
|---|---|
task_list
|
TYPE:
|
Source code in fractal_server/tasks/v2/local/_utils.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
edit_pyproject_toml_in_place_local(pyproject_toml_path, resource)
¶
Wrapper of simplify_pyproject_toml, with I/O.
Source code in fractal_server/tasks/v2/local/_utils.py
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 | |