Skip to content

Commit 1b38fc0

Browse files
atelalclaude
andcommitted
fix: add healthcheck for queue-worker service
Add process-based healthcheck using pgrep to detect if the job_worker process is running, complementing the restart: always policy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0193c79 commit 1b38fc0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/docker-compose.production.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ services:
285285
networks:
286286
- openspp-prod
287287
restart: always
288+
healthcheck:
289+
test: ["CMD-SHELL", "pgrep -f 'odoo.addons.job_worker.cli' || exit 1"]
290+
interval: 30s
291+
timeout: 10s
292+
start_period: 60s
293+
retries: 3
288294
deploy:
289295
resources:
290296
limits:

0 commit comments

Comments
 (0)