_utils
| FUNCTION | DESCRIPTION |
|---|---|
check_task_files_exist |
Check that the modules listed in task commands point to existing files. |
edit_pyproject_toml_in_place_local |
Wrapper of |
rmtree_nofail |
Wrap a |
Classes
Functions:
_customize_and_run_template(template_filename, replacements, script_dir, logger_name, prefix)
Customize one of the template bash scripts.
| PARAMETER | DESCRIPTION |
|---|---|
|
Filename of the template file (ends with ".sh").
TYPE:
|
|
Dictionary of replacements. |
|
Local folder where the script will be placed.
TYPE:
|
|
Prefix for the script filename.
TYPE:
|
Source code in fractal_server/tasks/v2/local/_utils.py
check_task_files_exist(task_list)
Check that the modules listed in task commands point to existing files.
| PARAMETER | DESCRIPTION |
|---|---|
|
TYPE:
|
Source code in fractal_server/tasks/v2/local/_utils.py
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
rmtree_nofail(*, folder_path, logger_name)
Wrap a shutil.rmtree with try/except and logs.
| PARAMETER | DESCRIPTION |
|---|---|
|
Folder to be deleted.
TYPE:
|
|
Logger name.
TYPE:
|