_aux_functions_history
_verify_workflow_and_dataset_access(*, project_id, workflow_id, dataset_id, user_id, db)
async
¶
Verify user access to a dataset/workflow pair.
| PARAMETER | DESCRIPTION |
|---|---|
project_id
|
TYPE:
|
workflow_id
|
TYPE:
|
dataset_id
|
TYPE:
|
user_id
|
TYPE:
|
db
|
TYPE:
|
Source code in fractal_server/app/routes/api/v2/_aux_functions_history.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
get_history_run_or_404(*, history_run_id, db)
async
¶
Get an existing HistoryRun or raise a 404.
| PARAMETER | DESCRIPTION |
|---|---|
history_run_id
|
TYPE:
|
db
|
TYPE:
|
Source code in fractal_server/app/routes/api/v2/_aux_functions_history.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
get_history_unit_or_404(*, history_unit_id, db)
async
¶
Get an existing HistoryUnit or raise a 404.
| PARAMETER | DESCRIPTION |
|---|---|
history_unit_id
|
The
TYPE:
|
db
|
An asynchronous db session
TYPE:
|
Source code in fractal_server/app/routes/api/v2/_aux_functions_history.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
get_wftask_check_owner(*, project_id, dataset_id, workflowtask_id, user_id, db)
async
¶
Verify user access for the history of this dataset and workflowtask.
| PARAMETER | DESCRIPTION |
|---|---|
project_id
|
TYPE:
|
dataset_id
|
TYPE:
|
workflowtask_id
|
TYPE:
|
user_id
|
TYPE:
|
db
|
TYPE:
|
Source code in fractal_server/app/routes/api/v2/_aux_functions_history.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | |
read_log_file(*, task_name, dataset_id, logfile, job_working_dir)
¶
Returns the contents of a Job's log file, either directly from the working directory or from the corresponding ZIP archive.
The function first checks if logfile exists on disk.
If not, it checks if the Job working directory has been zipped and tries to
read logfile from within the archive.
(Note: it is assumed that logfile is relative to job_working_dir)
Source code in fractal_server/app/routes/api/v2/_aux_functions_history.py
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 109 110 111 112 113 114 115 116 | |