From 8f7a341ec862b2b065ba5667c45d524d29b410cb Mon Sep 17 00:00:00 2001 From: Pieter Date: Thu, 20 Oct 2022 11:11:33 +0200 Subject: [PATCH] bug: timeout curl health check on deployer (#415) --- 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 4e80925c3..5ea47e33f 100644 --- a/gateway/src/project.rs +++ b/gateway/src/project.rs @@ -367,8 +367,8 @@ impl ProjectCreating { ], "Healthcheck": { "Interval": 1_000_000_000i64, // Every second - "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")], }, });