task_collection
FractalUploadedFile
¶
Bases: BaseModel
Model for data sent from the endpoint to the background task.
Source code in fractal_server/app/schemas/v2/task_collection.py
15 16 17 18 19 20 21 | |
TaskCollectCustomV2
¶
Bases: BaseModel
| ATTRIBUTE | DESCRIPTION |
|---|---|
manifest |
Manifest of a Fractal task package (this is typically the
content of
TYPE:
|
python_interpreter |
Absolute path to the Python interpreter to be used for running tasks.
TYPE:
|
name |
A name identifying this package, that will fill the
TYPE:
|
package_root |
The folder where the package is installed.
If not provided, it will be extracted via
TYPE:
|
package_name |
Name of the package, as used for
TYPE:
|
version |
Optional version of tasks to be collected.
TYPE:
|
Source code in fractal_server/app/schemas/v2/task_collection.py
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 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
TaskCollectPipV2
¶
Bases: BaseModel
TaskCollectPipV2 class
This class only encodes the attributes required to trigger a task-collection operation. Other attributes (that are assigned during task collection) are defined as part of fractal-server.
Two cases are supported:
1. `package` is the name of a package that can be installed via `pip`.
1. `package=None`, and a wheel file is uploaded within the API request.
| ATTRIBUTE | DESCRIPTION |
|---|---|
package |
The name of a
TYPE:
|
package_version |
Version of the package
TYPE:
|
package_extras |
Package extras to include in the
TYPE:
|
python_version |
Python version to install and run the package tasks
TYPE:
|
pinned_package_versions_pre |
dictionary 'package':'version' used to pre-pin versions for specific packages.
TYPE:
|
pinned_package_versions_post |
dictionary 'package':'version' used to post-pin versions for specific packages.
TYPE:
|
Source code in fractal_server/app/schemas/v2/task_collection.py
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 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 84 85 86 87 88 89 90 91 | |