Class: CheckAndNotify::Workers::CheckEveryHourWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/check_and_notify/workers/check_every_hour_worker.rb

Instance Method Summary collapse

Instance Method Details

#performObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/check_and_notify/workers/check_every_hour_worker.rb', line 7

def perform
  callbacks_size = CheckAndNotify::Callbacks.
    check_after_one_hour_callbacks.count

  callbacks_size.times do |index|
    SlackNotifierWorker.perform_async(
      index, SlackNotifierWorker::EVERY_HOUR
    )
  end
end