Fix Scheduler::SubscriptionsScheduler (#2834)
* Fix Scheduler::SubscriptionsScheduler, add worker test for it * Change production log level of Sidekiq to "warn" instead of "info"
This commit is contained in:
parent
1f15a15621
commit
b8e166894b
7 changed files with 26 additions and 13 deletions
|
@ -5,9 +5,9 @@ class Scheduler::SubscriptionsScheduler
|
|||
include Sidekiq::Worker
|
||||
|
||||
def perform
|
||||
Rails.logger.debug 'Queueing PuSH re-subscriptions'
|
||||
logger.info 'Queueing PuSH re-subscriptions'
|
||||
|
||||
expiring_accounts.pluck(:id) do |id|
|
||||
expiring_accounts.pluck(:id).each do |id|
|
||||
Pubsubhubbub::SubscribeWorker.perform_async(id)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue