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