diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-22 17:32:51 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-22 17:32:51 +0100 |
commit | 45c7ee39b3d45159de382e8596110af04ee1ed8c (patch) | |
tree | 161516b55c190c41c1c2421e0d885960957744f2 /app/workers | |
parent | 95db6cbe28acc193ff0c898790a6740c4ff3d473 (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')
-rw-r--r-- | app/workers/salmon_worker.rb | 2 |
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 |