Commit a29a7060 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Removed old delete/unstage continition which was based on separate uplaod create and file upload.

parent 4cb908ac
Pipeline #41902 passed with stages
in 15 minutes and 3 seconds
......@@ -321,8 +321,9 @@ class Upload(Chord, datamodel.Upload):
return logger
def delete(self):
if not (self.completed or self.current_task == 'uploading'):
if not self.completed:
raise NotAllowedDuringProcessing()
Calc.objects(upload_id=self.upload_id).delete()
super().delete()
......@@ -350,7 +351,7 @@ class Upload(Chord, datamodel.Upload):
def unstage(self, meta_data):
self.get_logger().info('unstage')
if not (self.completed or self.current_task == 'uploading'):
if not self.completed:
raise NotAllowedDuringProcessing()
coe_repo.Upload.add(self, meta_data)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment