Skip to content
Snippets Groups Projects

merge and deploy

Merged Nico Vermaas requested to merge SDC-1423-use-aggregation-strategy into master
2 files
+ 26
11
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -189,17 +189,6 @@ def update_processed_and_aggregate(task):
@@ -189,17 +189,6 @@ def update_processed_and_aggregate(task):
if t.status != State.DISCARDED.value:
if t.status != State.DISCARDED.value:
non_discarded_found = True
non_discarded_found = True
# only save when changed
if activity.is_processed != current_is_processed:
# if the whole activity has become processed, then set the status of this activity to 'AGGREGATE'
# unless it was already aggregated
if (activity.is_processed & non_discarded_found):
if not (activity.is_aggregated):
activity.status = State.AGGREGATE.value
activity.save()
if (task.workflow.aggregation_strategy == AggregationStrategy.COLLECT_H5.value):
if (task.workflow.aggregation_strategy == AggregationStrategy.COLLECT_H5.value):
# check if there is already a storage_location, if not, add it.
# check if there is already a storage_location, if not, add it.
@@ -227,6 +216,15 @@ def update_processed_and_aggregate(task):
@@ -227,6 +216,15 @@ def update_processed_and_aggregate(task):
activity.save()
activity.save()
 
# only save when changed
 
if activity.is_processed != current_is_processed:
 
# if the whole activity has become processed, then set the status of this activity to 'AGGREGATE'
 
# unless it was already aggregated
 
if (activity.is_processed & non_discarded_found):
 
if not (activity.is_aggregated):
 
activity.status = State.AGGREGATE.value
 
 
activity.save()
def update_is_verified(task):
def update_is_verified(task):
"""
"""
Loading