Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit dae02ef

Browse files
author
Juuso Mäyränen
committed
Sleep before retrying redis
1 parent 7256fd6 commit dae02ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/logstash/inputs/redis.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ def list_pattern_runner(output_queue)
308308
rescue ::Redis::BaseError => e
309309
@logger.warn("Redis connection problem", :exception => e)
310310
@redis = nil
311+
sleep 1
311312
end
312313
end
313314
@logger.debug("Total items processed: #{@items_processed.value}")

0 commit comments

Comments
 (0)