about summary refs log tree commit diff
path: root/app/workers/salmon_worker.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-22 17:32:51 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-22 17:32:51 +0100
commit45c7ee39b3d45159de382e8596110af04ee1ed8c (patch)
tree161516b55c190c41c1c2421e0d885960957744f2 /app/workers/salmon_worker.rb
parent95db6cbe28acc193ff0c898790a6740c4ff3d473 (diff)
Remove unneeded indices, improve error handling in background workers, don't needlessly reload reblogged status, send Devise e-mails asynchronously
Diffstat (limited to 'app/workers/salmon_worker.rb')
-rw-r--r--app/workers/salmon_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/salmon_worker.rb b/app/workers/salmon_worker.rb
index 12b46e92f..24fb94012 100644
--- a/app/workers/salmon_worker.rb
+++ b/app/workers/salmon_worker.rb
@@ -5,5 +5,7 @@ class SalmonWorker
 
   def perform(account_id, body)
     ProcessInteractionService.new.call(body, Account.find(account_id))
+  rescue ActiveRecord::RecordNotFound
+    true
   end
 end