fix: Worker healthcheck uses celery inspect ping instead of HTTP (no web server)
This commit is contained in:
parent
1b4b803f6b
commit
541354d89e
1 changed files with 6 additions and 0 deletions
|
|
@ -124,6 +124,12 @@ services:
|
||||||
QDRANT_URL: http://chrysopedia-qdrant:6333
|
QDRANT_URL: http://chrysopedia-qdrant:6333
|
||||||
EMBEDDING_API_URL: http://chrysopedia-ollama:11434/v1
|
EMBEDDING_API_URL: http://chrysopedia-ollama:11434/v1
|
||||||
command: ["celery", "-A", "worker", "worker", "--loglevel=info", "--concurrency=2"]
|
command: ["celery", "-A", "worker", "worker", "--loglevel=info", "--concurrency=2"]
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "celery -A worker inspect ping --timeout=5 2>/dev/null | grep -q pong || exit 1"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 30s
|
||||||
volumes:
|
volumes:
|
||||||
- /vmPool/r/services/chrysopedia_data:/data
|
- /vmPool/r/services/chrysopedia_data:/data
|
||||||
- ./prompts:/prompts:ro
|
- ./prompts:/prompts:ro
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue