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

Fixed delete empty and failed uploads in migration. [skip ci]

parent 09f96729
Pipeline #45338 skipped
......@@ -767,16 +767,18 @@ class NomadCOEMigration:
upload_to_delete = upload
if delete:
upload_to_delete = self.nomad(
'uploads.delete_upload', upload_id=upload_to_delete.upload_id)
sleep = utils.SleepTimeBackoff()
while upload.process_running:
while upload_to_delete.process_running:
upload_to_delete = self.nomad(
'uploads.delete_upload', upload_id=upload_to_delete.upload_id)
'uploads.get_upload', upload_id=upload_to_delete.upload_id)
except HTTPNotFound:
# the proc upload will be deleted by the delete operation
break'deleted upload after migration failure')
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