Keep scheduler jobs unique until they're done (#8287)
This commit is contained in:
parent
59c68c1a74
commit
91c929a42c
9 changed files with 18 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
class Scheduler::SubscriptionsScheduler
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options unique: :until_executed
|
||||
|
||||
def perform
|
||||
Pubsubhubbub::SubscribeWorker.push_bulk(expiring_accounts.pluck(:id))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue