1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00
weblate_ynh/conf/celery-weblate

28 lines
1.2 KiB
Text
Raw Normal View History

# 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:
2024-01-17 14:07:41 +01:00
CELERY_BIN="__INSTALL_DIR__/venv/bin/celery"
# 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"
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"
2020-10-28 12:02:15 +01:00
# Logging configuration
# - %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"
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"