Skip to content
Snippets Groups Projects
Commit 3e094567 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

also count 'finished', otherwise it will always show tasks finishing in the ingestq_status field)

parent 32184c4e
No related branches found
No related tags found
1 merge request!351solving some loose ends
......@@ -99,7 +99,7 @@ def update_activity(task):
# calculate the fraction and list of statusses of ingested tasks of this SAS_ID
if task.status in [State.SCRUBBED.value, State.PRE_ARCHIVING.value, State.PRE_ARCHIVED.value,
State.ARCHIVING.value, State.ARCHIVED.value, State.FINISHING.value]:
State.ARCHIVING.value, State.ARCHIVED.value, State.FINISHING.value, State.FINISHED.value]:
logger.info(f'- calculate_ingested_fraction')
result = calculate_ingested_fraction(task)
activity.ingested_fraction = result['completion']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment