Skip to content
Snippets Groups Projects
Unverified Commit 7711376f authored by Eliot Berriot's avatar Eliot Berriot Committed by GitHub
Browse files

Support setting CELERYD_CONCURRENCY to control number of spawned… (#35)

Support setting CELERYD_CONCURRENCY to control number of spawned worker processes
parents 9c3a2ac9 816c8060
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,8 @@ ENV FUNKWHALE_HOSTNAME=yourdomain.funkwhale \ ...@@ -96,7 +96,8 @@ ENV FUNKWHALE_HOSTNAME=yourdomain.funkwhale \
NGINX_MAX_BODY_SIZE=100M \ NGINX_MAX_BODY_SIZE=100M \
STATIC_ROOT=/app/api/staticfiles \ STATIC_ROOT=/app/api/staticfiles \
FUNKWHALE_SPA_HTML_ROOT=/app/front/dist/index.html \ FUNKWHALE_SPA_HTML_ROOT=/app/front/dist/index.html \
FUNKWHALE_WEB_WORKERS=1 FUNKWHALE_WEB_WORKERS=1 \
CELERYD_CONCURRENCY=0
# #
# Entrypoint # Entrypoint
# #
......
#!/usr/bin/with-contenv sh #!/usr/bin/with-contenv sh
cd /app/api cd /app/api
exec s6-setuidgid funkwhale celery -f /var/log/funkwhale/celery-worker.log -A funkwhale_api.taskapp worker exec s6-setuidgid funkwhale celery -f /var/log/funkwhale/celery-worker.log -A funkwhale_api.taskapp worker --concurrency=$CELERYD_CONCURRENCY
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment