utils_background
_prepare_tasks_metadata(*, package_manifest, python_bin, package_root, package_version=None)
¶
Based on the package manifest and additional info, prepare the task list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
package_manifest |
ManifestV2
|
|
required |
python_bin |
Path
|
|
required |
package_root |
Path
|
|
required |
package_version |
Optional[str]
|
|
None
|
Source code in fractal_server/tasks/v2/utils_background.py
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 119 |
|
check_task_files_exist(task_list)
¶
Check that the modules listed in task commands point to existing files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task_list |
list[TaskCreateV2]
|
|
required |
Source code in fractal_server/tasks/v2/utils_background.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|