Handle already deleted items gracefully in receive local batch job
This commit is contained in:
parent
d6f5368474
commit
9520d06c7b
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ module Workers
|
|||
object = object_class_string.constantize.find(object_id)
|
||||
receiver = Postzord::Receiver::LocalBatch.new(object, recipient_user_ids)
|
||||
receiver.perform!
|
||||
rescue ActiveRecord::NotFound # Already deleted before the job could run
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue