Module: SidekiqSchedulerNotification

Included in:
SidekiqScheduler::Scheduler
Defined in:
lib/sidekiq/scheduler/notification.rb

Instance Method Summary collapse

Instance Method Details

#load_schedule!Object



14
15
16
17
18
19
# File 'lib/sidekiq/scheduler/notification.rb', line 14

def load_schedule!
  super
  if Sidekiq.schedule
    SidekiqScheduler::Scheduler.notify_classes = Sidekiq.schedule.select{|_,v| v["notification"] }.map{|k,_| k}
  end
end