From ff534301f89c25aebefed30866a524d0164cee8a Mon Sep 17 00:00:00 2001 From: Keith Smith Date: Fri, 9 Jan 2026 09:10:02 -0700 Subject: [PATCH] Use ps instead of pgrep for celery healthchecks Change healthchecks to use 'ps aux | grep' instead of 'pgrep' since procps may not be available in existing images. This works with the base Python image without requiring a rebuild. Co-Authored-By: Claude Sonnet 4.5 --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f6ff22f..d3b6ae3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -127,7 +127,7 @@ services: condition: service_healthy command: celery-worker healthcheck: - test: ["CMD-SHELL", "pgrep -f 'celery.*worker' || exit 1"] + test: ["CMD-SHELL", "ps aux | grep -v grep | grep 'celery.*worker' || exit 1"] interval: 30s timeout: 10s retries: 3 @@ -162,7 +162,7 @@ services: condition: service_healthy command: celery-beat healthcheck: - test: ["CMD-SHELL", "pgrep -f 'celery.*beat' || exit 1"] + test: ["CMD-SHELL", "ps aux | grep -v grep | grep 'celery.*beat' || exit 1"] interval: 30s timeout: 10s retries: 3