From d3fdce07e96b3ad1431eb69f2c792fc08835084c Mon Sep 17 00:00:00 2001 From: Virgile Robles Date: Tue, 13 Apr 2021 22:32:15 +0200 Subject: [PATCH] Correctly set default value in systemd unit --- deploy/funkwhale-worker.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/funkwhale-worker.service b/deploy/funkwhale-worker.service index fbc242081..934263bd6 100644 --- a/deploy/funkwhale-worker.service +++ b/deploy/funkwhale-worker.service @@ -7,8 +7,9 @@ PartOf=funkwhale.target User=funkwhale # adapt this depending on the path of your funkwhale installation WorkingDirectory=/srv/funkwhale/api +Environment="CELERYD_CONCURRENCY=0" EnvironmentFile=/srv/funkwhale/config/.env -ExecStart=/srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY-0} +ExecStart=/srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY} [Install]