2018-10-19 23:28:40 +02:00
|
|
|
# Name of nodes to start
|
2020-10-28 19:20:46 +01:00
|
|
|
CELERYD_NODES="celery notify memory backup translate"
|
2019-08-30 22:21:30 +02:00
|
|
|
|
|
|
|
# Absolute or relative path to the 'celery' command:
|
|
|
|
CELERY_BIN="__FINALPATH__/venv/bin/celery"
|
2018-10-19 23:28:40 +02:00
|
|
|
|
|
|
|
# App instance to use
|
|
|
|
# comment out this line if you don't use an app
|
2020-10-28 12:02:15 +01:00
|
|
|
CELERY_APP="weblate.utils"
|
2018-10-19 23:28:40 +02:00
|
|
|
|
2020-10-28 12:02:15 +01:00
|
|
|
# Extra command-line arguments to the worker,
|
|
|
|
# increase concurency if you get weblate.E019
|
2020-10-28 19:20:46 +01:00
|
|
|
CELERYD_OPTS="--beat:celery --queues:celery=celery --prefetch-multiplier:celery=4 \
|
|
|
|
--queues:notify=notify --prefetch-multiplier:notify=10 \
|
|
|
|
--queues:memory=memory --prefetch-multiplier:memory=10 \
|
|
|
|
--queues:translate=translate --prefetch-multiplier:translate=4 \
|
2020-10-28 12:02:15 +01:00
|
|
|
--concurrency:backup=1 --queues:backup=backup --prefetch-multiplier:backup=2"
|
2018-10-19 23:28:40 +02:00
|
|
|
|
2020-10-28 12:02:15 +01:00
|
|
|
# Logging configuration
|
2018-10-19 23:28:40 +02:00
|
|
|
# - %n will be replaced with the first part of the nodename.
|
|
|
|
# - %I will be replaced with the current child process index
|
|
|
|
# and is important when using the prefork pool to avoid race conditions.
|
2019-08-28 00:09:23 +02:00
|
|
|
CELERYD_PID_FILE="/var/run/__APP__/weblate-celery-%n.pid"
|
|
|
|
CELERYD_LOG_FILE="/var/log/__APP__/weblate-celery-%n%I.log"
|
2018-10-19 23:28:40 +02:00
|
|
|
CELERYD_LOG_LEVEL="INFO"
|
|
|
|
|
2019-08-30 22:21:30 +02:00
|
|
|
# Internal Weblate variable to indicate we're running inside Celery
|
2020-10-28 12:02:15 +01:00
|
|
|
CELERY_WORKER_RUNNING="1"
|