MINOR: Flatten Pipeline Worker Threads

Fixes #7836
This commit is contained in:
Armin 2017-07-28 10:28:49 +02:00 committed by Armin Braun
parent 97a5d76ba4
commit 11754001e5

View file

@ -415,10 +415,11 @@ module LogStash; class Pipeline < BasePipeline
end end
pipeline_workers.times do |t| pipeline_workers.times do |t|
@worker_threads << Thread.new do thread = Thread.new(batch_size, batch_delay, self) do |_b_size, _b_delay, _pipeline|
Util.set_thread_name("[#{pipeline_id}]>worker#{t}") _pipeline.worker_loop(_b_size, _b_delay)
worker_loop(batch_size, batch_delay)
end end
thread.name="[#{pipeline_id}]>worker#{t}"
@worker_threads << thread
end end
# inputs should be started last, after all workers # inputs should be started last, after all workers