diff --git a/changes/changelog.d/1160.bugfix b/changes/changelog.d/1160.bugfix new file mode 100644 index 000000000..ba01f1114 --- /dev/null +++ b/changes/changelog.d/1160.bugfix @@ -0,0 +1 @@ +Fixed systemd unit for funkwhale-worker (#1160) 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]