Module: Fluent::WorkerModule
- Defined in:
- lib/fluent/supervisor.rb
Instance Method Summary collapse
Instance Method Details
#after_start ⇒ Object
284 285 286 |
# File 'lib/fluent/supervisor.rb', line 284 def after_start (config[:worker_pid] ||= {})[@worker_id] = @pm.pid end |
#spawn(process_manager) ⇒ Object
276 277 278 279 280 281 282 |
# File 'lib/fluent/supervisor.rb', line 276 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 |