Skip to content
Snippets Groups Projects
Verified Commit 6b567984 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

move: Deal with clean up step already happened by another process

parent 99cb45f2
No related branches found
No related tags found
No related merge requests found
......@@ -243,8 +243,15 @@ def main(
content_copied = Content.from_data(content_from_dst)
if content_copied == content:
src.delete(obj_id)
cleaned = True
try:
src.delete(obj_id)
cleaned = True
except:
logger.warning(
"Object <%s> already cleaned from destination objstorage",
obj_id,
)
continue
moved.add(obj_id)
else:
log_with_status(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment