Move to simpler file structure

This commit is contained in:
Sonny Bakker 2021-01-28 21:32:10 +01:00
parent fe72523a5a
commit d71a28e1c8
33 changed files with 374 additions and 406 deletions

View file

@ -1,30 +0,0 @@
# {{ 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"