Module: Fluent::WorkerModule
- Defined in:
- lib/fluent/supervisor.rb
Instance Method Summary collapse
Instance Method Details
#after_start ⇒ Object
204 205 206 |
# File 'lib/fluent/supervisor.rb', line 204 def after_start (config[:worker_pid] ||= []).push(@pm.pid) end |
#spawn(process_manager) ⇒ Object
196 197 198 199 200 201 202 |
# File 'lib/fluent/supervisor.rb', line 196 def spawn(process_manager) main_cmd = config[:main_cmd] env = { 'SERVERENGINE_WORKER_ID' => @worker_id.to_i.to_s, } @pm = process_manager.spawn(env, *main_cmd) end |