Change indexing frequency from 5 minutes to 1 minute, add locks to schedulers (#26304)
This commit is contained in:
parent
f55f0ab0c3
commit
a0fad5c8bb
10 changed files with 11 additions and 13 deletions
|
@ -4,7 +4,7 @@ class Scheduler::FollowRecommendationsScheduler
|
|||
include Sidekiq::Worker
|
||||
include Redisable
|
||||
|
||||
sidekiq_options retry: 0
|
||||
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 1.day.to_i
|
||||
|
||||
# The maximum number of accounts that can be requested in one page from the
|
||||
# API is 80, and the suggestions API does not allow pagination. This number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue