in lib/logstash/outputs/kusto/ingestor.rb [122:135]
def upload_async(path, delete_on_success)
if @workers_pool.remaining_capacity <= LOW_QUEUE_LENGTH
@logger.warn("Ingestor queue capacity is running low with #{@workers_pool.remaining_capacity} free slots.")
end
@workers_pool.post do
LogStash::Util.set_thread_name("Kusto to ingest file: #{path}")
upload(path, delete_on_success)
end
rescue Exception => e
@logger.error('StandardError.', exception: e.class, message: e.message, path: path, backtrace: e.backtrace)
raise e
end