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.
这个提交包含在:
han@highemelry 2019-07-13 01:46:21 +09:00 提交者 Eugen Rochko
父节点 f2795699dd
当前提交 b21c630043
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -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)