Skip to content

Commit

Permalink
Merge pull request #264 from uktrade/fix-celery-healthcheck
Browse files Browse the repository at this point in the history
fix-celery-healthcheck
  • Loading branch information
depsiatwal authored Jun 27, 2024
2 parents 7127ea3 + aae68ae commit 0d96206
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ services:
- redis
command: pipenv run watchmedo auto-restart -d . -R -p '*.py' -- celery -A conf worker -l info

healthcheck:
test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ]
interval: 10s
timeout: 5s
retries: 2
start_period: 5s

celery-beat:
build: .
volumes:
Expand All @@ -66,13 +73,6 @@ services:
- redis
command: pipenv run watchmedo auto-restart -d . -R -p '*.py' -- celery -A conf beat

healthcheck:
test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ]
interval: 10s
timeout: 5s
retries: 2
start_period: 5s

redis:
image: "redis:5-alpine"
container_name: hmrc-redis
Expand Down

0 comments on commit 0d96206

Please sign in to comment.