We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68ba40 commit 4741401Copy full SHA for 4741401
logstash-core/lib/logstash/api/modules/root.rb
@@ -50,11 +50,13 @@ def wait_for_status(timeout_seconds, target_status)
50
wait_interval_seconds = 1
51
52
Timeout.timeout(timeout_seconds.to_i) do
53
- current_status = HEALTH_STATUS.index(agent.health_observer.status.external_value)
54
- break if current_status <= HEALTH_STATUS.index(target_status)
+ loop do
+ current_status = HEALTH_STATUS.index(agent.health_observer.status.external_value)
55
+ break if current_status <= HEALTH_STATUS.index(target_status)
56
- sleep(wait_interval_seconds)
57
- wait_interval_seconds = wait_interval_seconds * 2
+ sleep(wait_interval_seconds)
58
+ wait_interval_seconds = wait_interval_seconds * 2
59
+ end
60
end
61
62
0 commit comments