Commit 10b695c9 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Merge branch 'migration' of gitlab.mpcdf.mpg.de:nomad-lab/nomad-FAIR into migration

parents b1d621f2 ac08df04
Pipeline #45359 passed with stages
in 25 minutes and 56 seconds
......@@ -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:
try:
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)
sleep()
except HTTPNotFound:
# the proc upload will be deleted by the delete operation
break
logger.info('deleted upload after migration failure')
else:
logger.warning(
......
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