From 8d606b3971298e0b128cc0f109731585151063ab Mon Sep 17 00:00:00 2001 From: chesedo Date: Thu, 20 Oct 2022 07:56:15 +0200 Subject: [PATCH] bug: timeout curl health check on deployer --- gateway/src/project.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/src/project.rs b/gateway/src/project.rs index 18a841889..45f46ef89 100644 --- a/gateway/src/project.rs +++ b/gateway/src/project.rs @@ -367,8 +367,8 @@ impl ProjectCreating { ], "Healthcheck": { "Interval": 60_000_000_000i64, // Every minute - "Timeout": 15_000_000_000i64, // 15 seconds - "Test": ["CMD", "curl", format!("localhost:8001/projects/{project_name}/status")], + "Timeout": 15_000_000_000i64, // 15 seconds. Should match the --max-time below + "Test": ["CMD", "curl", "--max-time=15", format!("localhost:8001/projects/{project_name}/status")], }, });