workflow
Workflow
¶
Bases: _WorkflowBaseV1
, SQLModel
Workflow
Attributes:
Name | Type | Description |
---|---|---|
id |
Optional[int]
|
Primary key |
project_id |
int
|
ID of the project the workflow belongs to. |
task_list |
list[WorkflowTask]
|
List of associations to tasks. |
Source code in fractal_server/app/models/v1/workflow.py
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 |
|
WorkflowTask
¶
Bases: _WorkflowTaskBaseV1
, SQLModel
A Task as part of a Workflow
This is a crossing table between Task and Workflow. In addition to the foreign keys, it allows for parameter overriding and keeps the order within the list of tasks of the workflow.
Attributes:
Name | Type | Description |
---|---|---|
id |
Optional[int]
|
Primary key |
workflow_id |
int
|
ID of the |
task_id |
int
|
ID of the task corresponding to the |
order |
Optional[int]
|
Positional order of the |
meta |
Optional[dict[str, Any]]
|
Additional parameters useful for execution |
args |
Optional[dict[str, Any]]
|
Task arguments |
task |
Task
|
|
Source code in fractal_server/app/models/v1/workflow.py
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 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 92 |
|
validate_args(value=None)
¶
Prevent fractal task reserved parameter names from entering args
Forbidden argument names are input_paths
, output_path
, metadata
,
component
.
Source code in fractal_server/app/models/v1/workflow.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|