From d3fdce07e96b3ad1431eb69f2c792fc08835084c Mon Sep 17 00:00:00 2001 From: Virgile Robles Date: Tue, 13 Apr 2021 22:32:15 +0200 Subject: [PATCH 1/2] 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] From 942d0d1485c180c314a4033e523c4d1833456a9c Mon Sep 17 00:00:00 2001 From: Virgile Robles Date: Tue, 13 Apr 2021 22:35:08 +0200 Subject: [PATCH 2/2] Add changelog fragment --- changes/changelog.d/1160.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/changelog.d/1160.bugfix 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)