Skip to content

fix(healthcheck): Let Docker enforce HEALTHCHECK_TIMEOUT in check_http.py - #4546

Merged
oioki merged 1 commit into
masterfrom
alextarasov/healthcheck-honor-timeout
Oct 2, 2026
Merged

oioki merged 1 commit into
masterfrom
alextarasov/healthcheck-honor-timeout

Conversation

@oioki

@oioki oioki commented Oct 1, 2026

Copy link
Copy Markdown
Member

check_http.py (#4539) gave up after a hardcoded 2 seconds, which effectively overrode HEALTHCHECK_TIMEOUT from .env (1m30s by default) for web and snuba-api. Drop the script's own timeout so Docker kills a check that runs past HEALTHCHECK_TIMEOUT, as it did for the previous bash check. Fast failures (connection refused, HTTP errors, missing ok) still get the script's one-line messages; a hung check shows Docker's Health check exceeded timeout (…).

Follow-up to #4539 (comment).

…p.py

check_http.py gave up after a hardcoded 2 seconds, so it effectively overrode HEALTHCHECK_TIMEOUT (1m30s by default). Drop the script's own timeout and let Docker kill a check that runs past HEALTHCHECK_TIMEOUT, like it did for the previous bash check.
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Coverage Results 📊

✅ 22 passed | Total: 22 | Pass Rate: 100% | Execution Time: 9m 46s

All tests are passing successfully.

✅ Patch coverage is 100.00% (no changed executable lines found; target 50%).
Project statement coverage is 95.54%.


Generated by Coverage Action

@oioki
oioki marked this pull request as ready for review October 1, 2026 17:38
@oioki
oioki requested review from aldy505 and aminvakil October 1, 2026 17:38
@oioki
oioki merged commit bcc168f into master Oct 2, 2026
23 checks passed
@oioki
oioki deleted the alextarasov/healthcheck-honor-timeout branch October 2, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants