Skip to content

Commit 6a6f325

Browse files
committed
fix(celery): use separate beat for single process
Mixing these two together might cause issues observed in #3738.
1 parent 890e856 commit 6a6f325

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

etc/supervisor/conf.d/celery-single.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[program:celery]
22
environment = CELERY_WORKER_RUNNING=1,CELERY_APP=weblate.utils
3-
command = celery --app=weblate.utils worker --beat --queues=celery,notify,memory,translate,backup --pool=solo %(ENV_CELERY_SINGLE_OPTIONS)s
3+
command = celery --app=weblate.utils worker --queues=celery,notify,memory,translate,backup --pool=solo %(ENV_CELERY_SINGLE_OPTIONS)s
44
autorestart = true
55
stdout_logfile=/dev/fd/1
66
stdout_logfile_maxbytes=0

start

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ if [ "$1" = "runserver" ]; then
217217
if [ "${CELERY_SINGLE_PROCESS:-0}" -eq 1 ]; then
218218
# Symlink single process service only
219219
ln -s /etc/supervisor/conf.d/celery-single.conf "$SUPERVISOR_CONF"
220+
ln -s /etc/supervisor/conf.d/celery-beat.conf "$SUPERVISOR_CONF"
220221
else
221222
# Symlink all celery services but the single process
222223
find /etc/supervisor/conf.d -type f -name 'celery-*.conf' ! -name 'celery-single.conf' -print0 | xargs -0 -I '{}' ln -s '{}' "$SUPERVISOR_CONF"

0 commit comments

Comments
 (0)