Commit 9520d06c authored by Jonne Haß's avatar Jonne Haß
Browse files

Handle already deleted items gracefully in receive local batch job

parent d6f53684
...@@ -10,6 +10,7 @@ module Workers ...@@ -10,6 +10,7 @@ module Workers
object = object_class_string.constantize.find(object_id) object = object_class_string.constantize.find(object_id)
receiver =, recipient_user_ids) receiver =, recipient_user_ids)
receiver.perform! receiver.perform!
rescue ActiveRecord::NotFound # Already deleted before the job could run
end end
end end
end end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment