pj_migration: destroy blob if not found
This commit is contained in:
parent
a559bf54eb
commit
23b68fa5aa
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue