Skip to content

Commit 42208bc

Browse files
committed
Add import statuses
1 parent 8049f0c commit 42208bc

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

biomero/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ class workflow_status:
115115
TRANSFERRING = "TRANSFERRING"
116116
CONVERTING = "CONVERTING"
117117
RETRIEVING = "RETRIEVING"
118+
IMPORTING = "IMPORTING"
119+
IMPORTED = "IMPORTED"
118120
DONE = "DONE"
119121
FAILED = "FAILED"
120122
RUNNING = "RUNNING"

biomero/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ def _(self, domain_event, process_event):
287287
workflow_status = wfs.RETRIEVING
288288
workflow_prog = "90%"
289289
elif task_name == 'slurm_import_results.py':
290-
workflow_status = wfs.RETRIEVING + status
290+
# Map IMPORTING -> wfs.IMPORTING, IMPORTED -> wfs.IMPORTED, fallback to status
291+
workflow_status = getattr(wfs, status, status)
291292
workflow_prog = "90%"
292293
elif task_name == 'slurm_run_workflow.py':
293294
workflow_status = wfs.RUNNING

0 commit comments

Comments
 (0)