Skip to content

Commit

Permalink
Configure celery with correct URL by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor authored and EliasBoulharts committed Sep 11, 2023
1 parent c3465d0 commit ab9c6ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Squest/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
# -----------------------------------------
# CELERY CONFIG
# -----------------------------------------
CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'amqp://rabbitmq:rabbitmq@localhost:5672/squest')
CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'amqp://rabbitmq:rabbitmq@rabbitmq:5672/squest')
print(f"CELERY_BROKER_URL: {CELERY_BROKER_URL}")
# Add a five-minutes timeout to all Celery tasks.
CELERY_TASK_SOFT_TIME_LIMIT = int(os.environ.get('CELERY_TASK_SOFT_TIME_LIMIT', 300))
Expand Down
3 changes: 0 additions & 3 deletions docker/environment_variables/squest.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ DB_HOST=db
DB_PORT=3306
# DB_PORT=5432 # for psql

## celery
CELERY_BROKER_URL=amqp://rabbitmq:rabbitmq@rabbitmq:5672/squest

## redis
REDIS_CACHE_HOST=redis-cache

Expand Down

0 comments on commit ab9c6ec

Please sign in to comment.