mirror of
https://github.com/reconurge/flowsint.git
synced 2026-05-06 03:38:31 -05:00
[PR #142] [MERGED] fix: replace celery container's inherited curl-based healthcheck #1129
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/reconurge/flowsint/pull/142
Author: @harmsolo13
Created: 4/29/2026
Status: ✅ Merged
Merged: 4/29/2026
Merged by: @dextmorgn
Base:
main← Head:fix/celery-healthcheck📝 Commits (1)
d4dbe8dfix: replace celery container's inherited curl-based healthcheck📊 Changes
2 files changed (+16 additions, -0 deletions)
View changed files
📝
docker-compose.dev.yml(+8 -0)📝
docker-compose.prod.yml(+8 -0)📄 Description
Summary
The celery container inherits the API's Dockerfile-level
HEALTHCHECK CMD curl -f http://localhost:5001/health. Celery has no HTTP server — it's a worker — so the check always fails anddocker psshows celery as(unhealthy)even when the worker is happily processing jobs.Cosmetic in normal operation, but bites in two real ways:
depends_on: celery: condition: service_healthyrefuses to start.Fix
Add a service-level
healthcheck:block on celery in bothdocker-compose.prod.ymlanddocker-compose.dev.ymlusing celery's owninspect pingagainst the worker's broker. Compose-level overrides the Dockerfile-level, so no Dockerfile change needed.Test
Smoke-tested locally on Docker Compose v5.1.2:
flowsint-celery-prodflips from(unhealthy)→(healthy)within ~30s of restart, no other changes.Test plan
docker compose up -d celery— container reports healthy within 30sdocker inspect --format '{{.State.Health.Status}}' flowsint-celery-prodreturnshealthy🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.