Skip to content

Commit

Permalink
✨(settings) allow disabling Celery via settings
Browse files Browse the repository at this point in the history
We don't want to use Celery in development environments,
this is just a tool for production to offload heavy
treatments from the web workers.
  • Loading branch information
sampaccoud committed Sep 10, 2018
1 parent 7cad8cb commit ae272d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/cms/docker_run_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

###################################### CELERY ################################

CELERY_ALWAYS_EAGER = config("CELERY_ALWAYS_EAGER", default=False, formatter=bool)

# Don't use a connection pool, since connections are dropped by ELB.
BROKER_POOL_LIMIT = 0
BROKER_CONNECTION_TIMEOUT = 1
Expand Down
2 changes: 2 additions & 0 deletions config/lms/docker_run_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@

###################################### CELERY ################################

CELERY_ALWAYS_EAGER = config("CELERY_ALWAYS_EAGER", default=False, formatter=bool)

# Don't use a connection pool, since connections are dropped by ELB.
BROKER_POOL_LIMIT = 0
BROKER_CONNECTION_TIMEOUT = 1
Expand Down

0 comments on commit ae272d2

Please sign in to comment.