Class: Roqua::Probes::SchedulingProbe

Inherits:
Object
  • Object
show all
Includes:
BaseProbe
Defined in:
lib/roqua/probes/scheduling_probe.rb

Instance Method Summary collapse

Methods included from BaseProbe

#call

Instance Method Details

#runObject



8
9
10
11
12
# File 'lib/roqua/probes/scheduling_probe.rb', line 8

def run
  ActiveRecord::Base.establish_connection
  require_relative Rails.root.join('config', 'schedule.rb')
  Roqua::Scheduling::Scheduler.new.ping
end