Retry healthcheck for up to 10 seconds (in case container wasnt ready)

This commit is contained in:
David Heinemeier Hansson
2023-02-19 15:34:36 +01:00
parent a0d71f3fe4
commit e5c4cb0344
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ class Mrsk::Commands::Healthcheck < Mrsk::Commands::Base
end
def curl
[ :curl, "--silent", "--output", "/dev/null", "--write-out", "'%{http_code}'", health_url ]
[ :curl, "--silent", "--output", "/dev/null", "--write-out", "'%{http_code}'", "--retry-max-time", 10, "--retry", 5, health_url ]
end
def logs