Class: Sidetiq::Supervisor

Inherits:
Celluloid::Supervision::Container
  • Object
show all
Extended by:
Logging
Defined in:
lib/sidetiq/supervisor.rb

Class Method Summary collapse

Class Method Details

.clockObject



20
21
22
23
# File 'lib/sidetiq/supervisor.rb', line 20

def clock
  run! if Celluloid::Actor[:sidetiq_clock].nil?
  Celluloid::Actor[:sidetiq_clock]
end

.handlerObject



25
26
27
28
# File 'lib/sidetiq/supervisor.rb', line 25

def handler
  run! if Celluloid::Actor[:sidetiq_handler].nil?
  Celluloid::Actor[:sidetiq_handler]
end

.runObject



36
37
38
# File 'lib/sidetiq/supervisor.rb', line 36

def run
  raise "Sidetiq::Supervisor should not be run in foreground."
end

.run!Object



30
31
32
33
34
# File 'lib/sidetiq/supervisor.rb', line 30

def run!
  motd
  info "Sidetiq::Supervisor start"
  super
end