Internal
Public Access
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.5
parent
e0ee377a20
commit
6e18baf502
+1
-1
@@ -127,7 +127,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
command: celery-worker
|
command: celery-worker
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "celery -A config inspect ping -d celery@$$HOSTNAME"]
|
test: ["CMD-SHELL", "pgrep -f 'celery.*worker' || exit 1"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user