Skip to content

Commit

Permalink
bug: timeout curl health check on deployer (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Oct 20, 2022
1 parent 6e771c7 commit 8f7a341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")],
},
});

Expand Down

0 comments on commit 8f7a341

Please sign in to comment.