Class: DisqueJockey::Supervisor
- Inherits:
-
Object
- Object
- DisqueJockey::Supervisor
- Defined in:
- lib/disque_jockey/supervisor.rb
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
12 13 14 |
# File 'lib/disque_jockey/supervisor.rb', line 12 def self.logger @logger ||= DisqueJockey::Logger.new('DisqueJockey') end |
.work! ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/disque_jockey/supervisor.rb', line 4 def self.work! Process.daemon(true) if DisqueJockey.configuration.daemonize? load_workers spawn_worker_groups trap_signals_in_parent monitor_worker_groups end |
.worker_classes ⇒ Object
16 17 18 |
# File 'lib/disque_jockey/supervisor.rb', line 16 def self.worker_classes @worker_classes ||= [] end |