Utils
DatasetError
Bases: Exception
Custom exception to report different error types to Scicat
Source code in backend/archiver/flows/utils.py
15 16 17 18 |
|
StoragePaths
Helper class to create paths in scratch and LTS folder
Source code in backend/archiver/flows/utils.py
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 |
|
SystemError
Bases: Exception
Custom exception to report different error types to Scicat
Source code in backend/archiver/flows/utils.py
21 22 23 24 |
|
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
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
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
47 48 49 50 51 52 53 54 55 56 57 |
|