Skip to content

Commit

Permalink
use env variable for celery broker url (#726)
Browse files Browse the repository at this point in the history
* chore: use env variable for celery broker url

* chore: set default env varibale if not configured
  • Loading branch information
martcl committed Oct 19, 2023
1 parent 25b679a commit cff144e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@

DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

CELERY_BROKER_URL = "amqp://guest:guest@rabbitmq:5672"
CELERY_BROKER_URL = os.environ.get("CELERY_BROKER_URL") or "amqp://guest:guest@rabbitmq:5672"

if ENVIRONMENT == EnvironmentOptions.LOCAL:
CELERY_TASK_ALWAYS_EAGER = False

0 comments on commit cff144e

Please sign in to comment.