Commit c2db08b8 authored by sim's avatar sim

[CONF] Make Celery configurable in gargantext.ini

parent 7fb853f8
......@@ -194,16 +194,13 @@ MEDIA_URL = '/media/'
import djcelery
djcelery.setup_loader()
BROKER_URL = 'amqp://guest:guest@localhost:5672/'
BROKER_URL = config('BROKER_URL', default='amqp://guest:guest@localhost:5672/')
CELERY_APP = config('CELERY_APP', default='gargantext.backend')
CELERY_ACCEPT_CONTENT = ['pickle', 'json', 'msgpack', 'yaml']
CELERY_TIMEZONE = TIME_ZONE
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
CELERY_IMPORTS = (
"gargantext.util.toolchain",
"gargantext.util.crawlers",
"gargantext.util.ngramlists_tools",
)
CELERY_IMPORTS = ()
# REST-API
......
......@@ -20,6 +20,11 @@ LOG_LEVEL = {LOG_LEVEL}
LOG_FORMATTER = verbose
# Pidfile of django backend test server
TESTSERVER_PIDFILE = /tmp/gargantext_testserver.pid
# Celery
CELERY_APP = gargantext.backend
CELERYD_PID_FILE = /tmp/celery.pid
CELERYD_LOG_FILE = /var/log/gargantext/backend/celery.log
CELERYD_LOG_LEVEL = {LOG_LEVEL}
[uwsgi]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment