Module: Sidekiq::Cron::Launcher
- Defined in:
- lib/sidekiq/cron/launcher.rb
Instance Attribute Summary collapse
-
#cron_poller ⇒ Object
readonly
Add cron poller to launcher.
Instance Method Summary collapse
-
#initialize(options) ⇒ Object
add cron poller and execute normal initialize of Sidekiq launcher.
-
#quiet ⇒ Object
execute normal quiet of launcher and quiet cron poller.
-
#run ⇒ Object
execute normal run of launcher and run cron poller.
-
#stop ⇒ Object
execute normal stop of launcher and stop cron poller.
Instance Attribute Details
#cron_poller ⇒ Object (readonly)
Add cron poller to launcher
13 14 15 |
# File 'lib/sidekiq/cron/launcher.rb', line 13 def cron_poller @cron_poller end |
Instance Method Details
#initialize(options) ⇒ Object
add cron poller and execute normal initialize of Sidekiq launcher
16 17 18 19 |
# File 'lib/sidekiq/cron/launcher.rb', line 16 def initialize() @cron_poller = Sidekiq::Cron::Poller.new super() end |
#quiet ⇒ Object
execute normal quiet of launcher and quiet cron poller
28 29 30 31 |
# File 'lib/sidekiq/cron/launcher.rb', line 28 def quiet cron_poller.terminate super end |
#run ⇒ Object
execute normal run of launcher and run cron poller
22 23 24 25 |
# File 'lib/sidekiq/cron/launcher.rb', line 22 def run super cron_poller.start end |
#stop ⇒ Object
execute normal stop of launcher and stop cron poller
34 35 36 37 |
# File 'lib/sidekiq/cron/launcher.rb', line 34 def stop cron_poller.terminate super end |