diff options
author | han@highemelry <high.emerly.ytfin@gmail.com> | 2019-07-13 01:46:21 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-12 18:46:21 +0200 |
commit | 402302776c82c3853e723fe0c0c4dc99c69da3d9 (patch) | |
tree | 3d38cc18989eba24c51c42f98a0a788dd8c0af81 | |
parent | 5bf67ca91350e40e6f329271d3ca2bdcba87ab64 (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.
-rw-r--r-- | app/workers/web/push_notification_worker.rb | 2 |
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) |