Drop sleep after container healthy

This commit is contained in:
Donal McBreen
2024-09-12 13:08:31 +01:00
parent e1016b2469
commit 33834a266a

View File

@@ -1,9 +1,6 @@
module Kamal::Cli::Healthcheck::Poller
extend self
TRAEFIK_UPDATE_DELAY = 5
def wait_for_healthy(pause_after_ready: false, &block)
attempt = 1
max_attempts = 7
@@ -11,7 +8,6 @@ module Kamal::Cli::Healthcheck::Poller
begin
case status = block.call
when "healthy"
sleep TRAEFIK_UPDATE_DELAY if pause_after_ready
when "running" # No health check configured
sleep KAMAL.config.readiness_delay if pause_after_ready
else