module Sidekiq::Cron::Launcher

Attributes

cron_poller[R]

Add cron poller to launcher

Public Class Methods

new(options) click to toggle source

add cron poller and execute normal initialize of Sidekiq launcher

Calls superclass method
# File lib/sidekiq/cron/launcher.rb, line 16
def initialize(options)
  @cron_poller = Sidekiq::Cron::Poller.new
  super(options)
end

Public Instance Methods

quiet() click to toggle source

execute normal quiet of launcher and quiet cron poller

Calls superclass method
# File lib/sidekiq/cron/launcher.rb, line 28
def quiet
  cron_poller.terminate
  super
end
run() click to toggle source

execute normal run of launcher and run cron poller

Calls superclass method
# File lib/sidekiq/cron/launcher.rb, line 22
def run
  super
  cron_poller.start
end
stop() click to toggle source

execute normal stop of launcher and stop cron poller

Calls superclass method
# File lib/sidekiq/cron/launcher.rb, line 34
def stop
  cron_poller.terminate
  super
end