about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorhan@highemelry <high.emerly.ytfin@gmail.com>2019-07-13 01:46:21 +0900
committerThibaut Girka <thib@sitedethib.com>2019-07-15 00:48:50 +0200
commit0442fcdbc88c2a77b1216c38d2fb5fe11bec334d (patch)
treefe397c6b54291bcd39db3c0c20e312f48185083b /app
parent99c1f0811b14474d268bd237c04a0ccedb3d2d5e (diff)
Change the retry limit in error of web push notification (#11292)
- Change the maximum count of retry for web push notification (Default -> 5).
   - In case of high load of subscribe server, the retries will be repeated many times.
   - Because the retries occupy the default queue, maximum retry count should be reduced.
Diffstat (limited to 'app')
-rw-r--r--app/workers/web/push_notification_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/web/push_notification_worker.rb b/app/workers/web/push_notification_worker.rb
index 8e8a35973..901043975 100644
--- a/app/workers/web/push_notification_worker.rb
+++ b/app/workers/web/push_notification_worker.rb
@@ -3,7 +3,7 @@
 class Web::PushNotificationWorker
   include Sidekiq::Worker
 
-  sidekiq_options backtrace: true
+  sidekiq_options backtrace: true, retry: 5
 
   def perform(subscription_id, notification_id)
     subscription = ::Web::PushSubscription.find(subscription_id)