Skip to content
Snippets Groups Projects
Commit c6e4ce75 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed multiple cleanup calls in upload processing, again.

parent 231fd649
Branches
Tags
1 merge request!48v0.5.0 Release
Pipeline #52517 passed
...@@ -809,7 +809,7 @@ class Upload(Proc): ...@@ -809,7 +809,7 @@ class Upload(Proc):
if not self.process_running and processed_calcs >= total_calcs: if not self.process_running and processed_calcs >= total_calcs:
# this can easily be called multiple times, e.g. upload finished after all calcs finished # this can easily be called multiple times, e.g. upload finished after all calcs finished
modified_upload = self._get_collection().update( modified_upload = self._get_collection().update(
dict(_id=self.upload_id, joined=False), dict(_id=self.upload_id, joined__ne=True),
{'$set': {'joined': True}}, upsert=False) {'$set': {'joined': True}}, upsert=False)
if modified_upload is not None: if modified_upload is not None:
self.get_logger().debug('join') self.get_logger().debug('join')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment