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

also reset aggregation state on FETCHED (instead of only DEFINED)

parent 6adedfa6
No related branches found
No related tags found
1 merge request!353also reset aggregation state on FETCHED (instead of only DEFINED)
Pipeline #85848 passed
......@@ -238,6 +238,17 @@ class Task(models.Model):
# which is always... except in some simpler unittests
pass
# when tasks are put back on fetched (resetting the flow), also reset some activity values
if (self.status != State.FETCHED.value) & (self.new_status == State.FETCHED.value):
try:
self.activity.status = State.FETCHED.value
self.activity.is_processed = False
self.activity.is_aggregated = False
self.activity.save()
except:
# only bother with it if the task actually has an activity attached
# which is always... except in some simpler unittests
pass
# when a task goes to PROCESSED...
if (self.status != State.PROCESSED.value) & (self.new_status == State.PROCESSED.value):
......
......@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p class="footer"> Version 27 May 2024
<p class="footer"> Version 21 Jun 2024
</div>
{% include 'taskdatabase/refresh.html' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment