about summary refs log tree commit diff
path: root/app/workers/notification_worker.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-05 03:28:21 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-05 03:28:21 +0100
commit6c28886317bdf837e7e3f399115af91ac282735e (patch)
tree243f57e7e712108fbd10d45247e877240b4d6b33 /app/workers/notification_worker.rb
parent251b04298e826818ecb48c2fdf96a83649e14e93 (diff)
Improve background jobs params and error handling
Diffstat (limited to 'app/workers/notification_worker.rb')
-rw-r--r--app/workers/notification_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/notification_worker.rb b/app/workers/notification_worker.rb
index 386e94111..e4c38d384 100644
--- a/app/workers/notification_worker.rb
+++ b/app/workers/notification_worker.rb
@@ -3,6 +3,8 @@
 class NotificationWorker
   include Sidekiq::Worker
 
+  sidekiq_options retry: 5
+
   def perform(stream_entry_id, target_account_id)
     SendInteractionService.new.call(StreamEntry.find(stream_entry_id), Account.find(target_account_id))
   end