crypto-wake/files/docs/apps/weblate.md
Nathan Schneider 11c6212fb7 Initial commit
2021-03-14 16:34:32 -06:00

1.2 KiB

Weblate App

About

Weblate is a libre web-based translation tool with tight version control integration.

Celery Worker Options

Weblate has a few celery worker for background processing. Depending on the allocated resources and available CPUs it may be required to adjust the worker options. Those can be set by editing the file at /app/data/.celery.env:

The default file contains one env variable per worker:

export CELERY_MAIN_OPTIONS=""
export CELERY_NOTIFY_OPTIONS=""
export CELERY_TRANSLATE_OPTIONS=""
export CELERY_BACKUP_OPTIONS=""
export CELERY_BEAT_OPTIONS=""

To set for example the concurrency for one worker, adjust the corresponding line like:

export CELERY_MAIN_OPTIONS="--concurrency 16"

Then restart the app. If the app does not start up again, take a look at the logs to see if an option may not be accepted for a worker.