Module: Fluent::WorkerModule
- Defined in:
- lib/fluent/supervisor.rb
Instance Method Summary collapse
Instance Method Details
#after_start ⇒ Object
416 417 418 |
# File 'lib/fluent/supervisor.rb', line 416 def after_start (config[:worker_pid] ||= {})[@worker_id] = @pm.pid end |
#dump ⇒ Object
420 421 422 |
# File 'lib/fluent/supervisor.rb', line 420 def dump super unless @stop end |
#spawn(process_manager) ⇒ Object
408 409 410 411 412 413 414 |
# File 'lib/fluent/supervisor.rb', line 408 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 |