Retry more for Articles::UpdateAnalyticsWorker since it can fail due to API rate limit errors (#5618)

This commit is contained in:
Molly Struve 2020-01-21 08:00:39 -05:00 committed by GitHub
parent 90470584a7
commit a68e7b5267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ module Articles
class UpdateAnalyticsWorker
include Sidekiq::Worker
sidekiq_options queue: :low_priority, retry: 5
sidekiq_options queue: :low_priority, retry: 15
def perform(user_id)
user = User.find_by(id: user_id)