0
0
Fork 0

Adding some rescues to workers, e.g. don't fail removal job when status can't be found in the first place (already removed)

This commit is contained in:
Eugen Rochko 2016-12-19 09:31:12 +01:00
parent 0542773bca
commit 4c6809f6ab
3 changed files with 6 additions and 0 deletions

View file

@ -5,5 +5,7 @@ class RemovalWorker
def perform(status_id)
RemoveStatusService.new.call(Status.find(status_id))
rescue ActiveRecord::RecordNotFound
true
end
end