mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
2573082445
commit
1ce2cd9ad9
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ module LogStash; class PipelineReporter
|
|||
def worker_states(batch_map)
|
||||
pipeline.worker_threads.map.with_index do |thread, idx|
|
||||
status = thread.status || "dead"
|
||||
inflight_count = batch_map[thread] ? batch_map[thread].size : 0
|
||||
batch = batch_map[thread]
|
||||
inflight_count = batch ? batch.size : 0
|
||||
{
|
||||
:status => status,
|
||||
:alive => thread.alive?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue