pj_migration: destroy blob if not found

This commit is contained in:
simon lehericey 2023-09-27 10:12:12 +02:00
parent a559bf54eb
commit 23b68fa5aa

View file

@ -24,6 +24,7 @@ class PjsMigrationJob < ApplicationJob
client.delete_object(container, old_key)
end
rescue Fog::OpenStack::Storage::NotFound
blob.attachments.destroy_all
end
def already_moved?(blob)