From 6e18baf502d92550d5c8b5aafbe66637e1639052 Mon Sep 17 00:00:00 2001 From: Keith Smith Date: Fri, 9 Jan 2026 08:52:42 -0700 Subject: [PATCH] Fix celery-worker healthcheck command Replace celery inspect ping with pgrep check for reliability. The inspect command was failing in healthcheck context while the worker process itself was running fine. Co-Authored-By: Claude Sonnet 4.5 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index baa48c0..f6ff22f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -127,7 +127,7 @@ services: condition: service_healthy command: celery-worker healthcheck: - test: ["CMD-SHELL", "celery -A config inspect ping -d celery@$$HOSTNAME"] + test: ["CMD-SHELL", "pgrep -f 'celery.*worker' || exit 1"] interval: 30s timeout: 10s retries: 3