2018-10-19 23:28:40 +02:00
|
|
|
# Name of nodes to start
|
2019-08-30 22:21:30 +02:00
|
|
|
CELERYD_NODES="celery notify search memory"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
CELERY_APP="weblate"
|
|
|
|
|
|
|
|
# Extra command-line arguments to the worker
|
2019-08-30 22:21:30 +02:00
|
|
|
CELERYD_OPTS="--beat:celery --concurrency:celery=4 --queues:celery=celery --prefetch-multiplier:celery=4 \
|
|
|
|
--concurrency:notify=4 --queues:notify=notify --prefetch-multiplier:notify=4 \
|
|
|
|
--concurrency:search=1 --queues:search=search --prefetch-multiplier:search=2000 \
|
|
|
|
--concurrency:memory=1 --queues:memory=memory --prefetch-multiplier:memory=2000"
|
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
|
2019-08-28 00:09:23 +02:00
|
|
|
CELERY_WORKER_RUNNING="1"
|