handle_failed_job
Helper functions to handle Dataset history.
assemble_history_failed_job(job, output_dataset, workflow, logger, failed_wftask=None)
¶
Assemble history
after a workflow-execution job fails.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
job |
ApplyWorkflow
|
The failed |
required |
output_dataset |
Dataset
|
The |
required |
workflow |
Workflow
|
The |
required |
logger |
Logger
|
A logger instance. |
required |
failed_wftask |
Optional[WorkflowTask]
|
If set, append it to |
None
|
Returns:
Type | Description |
---|---|
list[dict[str, Any]]
|
The new value of |
list[dict[str, Any]]
|
|
Source code in fractal_server/app/runner/v1/handle_failed_job.py
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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|
assemble_meta_failed_job(job, output_dataset)
¶
Assemble Dataset.meta
(history excluded) for a failed workflow-execution.
Assemble new value of output_dataset.meta
based on the last successful
task, i.e. based on the content of the temporary METADATA_FILENAME
file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
job |
ApplyWorkflow
|
The failed |
required |
output_dataset |
Dataset
|
The |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
The new value of |
Source code in fractal_server/app/runner/v1/handle_failed_job.py
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 140 141 |
|