Move to simpler file structure
This commit is contained in:
parent
fe72523a5a
commit
d71a28e1c8
33 changed files with 374 additions and 406 deletions
30
templates/celery.env.j2
Normal file
30
templates/celery.env.j2
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
#
|
||||
# Name of nodes to start
|
||||
CELERYD_NODES="worker1 worker2"
|
||||
|
||||
CELERY_BIN="{{ app_dir }}/.venv/bin/celery"
|
||||
|
||||
CELERY_APP="newsreader"
|
||||
|
||||
# The scheduler to be used.
|
||||
# See https://docs.celeryproject.org/en/stable/userguide/configuration.html#beat-scheduler
|
||||
CELERY_SCHEDULER="django_celery_beat.schedulers:DatabaseScheduler"
|
||||
|
||||
# How to call manage.py
|
||||
CELERYD_MULTI="multi"
|
||||
|
||||
# Extra command-line arguments to the worker
|
||||
CELERYD_OPTS="--time-limit=300 --concurrency=8"
|
||||
|
||||
# - %I will be replaced with the current child process index
|
||||
# and is important when using the prefork pool to avoid race conditions.
|
||||
CELERYD_PID_FILE="/run/celery/%n.pid"
|
||||
|
||||
CELERYD_LOG_LEVEL="INFO"
|
||||
CELERYD_LOG_FILE="/dev/null"
|
||||
|
||||
# you may wish to add these options for Celery Beat
|
||||
CELERYBEAT_PID_FILE="/run/celery/beat.pid"
|
||||
|
||||
DJANGO_SETTINGS_MODULE="newsreader.conf.production"
|
||||
Reference in a new issue