Utils
DatasetError
Bases: Exception
Custom exception to report different error types to Scicat
Source code in backend/archiver/flows/utils.py
11 12 13 14 |
|
StoragePaths
Helper class to create paths in scratch and LTS folder
Source code in backend/archiver/flows/utils.py
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 |
|
SystemError
Bases: Exception
Custom exception to report different error types to Scicat
Source code in backend/archiver/flows/utils.py
17 18 19 20 |
|
report_archival_error(dataset_id, state, task_run, token)
Report an error of an archival job of a dataset. Differntiates betwen "DatasetError" (User error, e.g. missing files) and SystemError (transient error).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
dataset id |
required |
state
|
State
|
task run state |
required |
task_run
|
TaskRun
|
task run |
required |
Source code in backend/archiver/flows/utils.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
report_retrieval_error(dataset_id, state, task_run, token)
Report a retrieval error of a job of a dataset. Differntiates betwen "DatasetError" (User error, e.g. missing files) and SystemError (transient error).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
dataset id |
required |
state
|
State
|
task run state |
required |
task_run
|
TaskRun
|
task run |
required |
Source code in backend/archiver/flows/utils.py
43 44 45 46 47 48 49 50 51 52 53 |
|