Skip to content

Commit

Permalink
fix(start): avoid --concurrency=0 with WEBLATE_WORKERS=1
Browse files Browse the repository at this point in the history
Fixes #2407
  • Loading branch information
nijel committed Jun 17, 2024
1 parent 2e9e20f commit 3bcec30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ set_real_ip_from 0.0.0.0/0;
: "${CELERY_MAIN_OPTIONS:="--concurrency $WEBLATE_WORKERS"}"
: "${CELERY_NOTIFY_OPTIONS:="--concurrency $WEBLATE_WORKERS"}"
: "${CELERY_TRANSLATE_OPTIONS:="--concurrency $WEBLATE_WORKERS"}"
: "${CELERY_MEMORY_OPTIONS:="--concurrency $((WEBLATE_WORKERS / 2))"}"
: "${CELERY_MEMORY_OPTIONS:="--concurrency $(( WEBLATE_WORKERS == 1 ? 1 : WEBLATE_WORKERS / 2))"}"
: "${CELERY_BACKUP_OPTIONS:="--concurrency 1"}"
: "${CELERY_BEAT_OPTIONS:=""}"
: "${WEB_WORKERS:="$((WEBLATE_WORKERS + 1))"}"
Expand Down

0 comments on commit 3bcec30

Please sign in to comment.