diff options
author | getzze | 2020-11-22 00:29:38 +0000 |
---|---|---|
committer | getzze | 2020-11-22 00:29:38 +0000 |
commit | afed117ea611f83dd8bcacb6dc423c8446cb0f54 (patch) | |
tree | bb98fe9208e62c4d0920e1b28f97eeb447a254bf /funkwhale-worker.service | |
parent | f50b428b892ba20db1a958c671de300154c10de2 (diff) | |
download | aur-afed117ea611f83dd8bcacb6dc423c8446cb0f54.tar.gz |
bug with celery5 and workdir
Diffstat (limited to 'funkwhale-worker.service')
-rw-r--r-- | funkwhale-worker.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/funkwhale-worker.service b/funkwhale-worker.service index 494b52a02b52..a0185ad976fa 100644 --- a/funkwhale-worker.service +++ b/funkwhale-worker.service @@ -7,6 +7,7 @@ PartOf=funkwhale.service User=funkwhale # adapt this depending on the path of your funkwhale installation EnvironmentFile=/srv/funkwhale/config/env +WorkingDirectory=/usr/share/webapps/funkwhale/api # Celery workers handle background tasks (such file imports or federation # messaging). The more processes a worker gets, the more tasks # can be processed in parallel. However, more processes also means @@ -15,7 +16,7 @@ EnvironmentFile=/srv/funkwhale/config/env # of CPUs. You can adjust this, by explicitly setting the --concurrency # flag: # celery -A funkwhale_api.taskapp worker -l INFO --concurrency=4 -ExecStart=/usr/bin/celery -A funkwhale_api.taskapp worker -l INFO --workdir=/usr/share/webapps/funkwhale/api +ExecStart=/usr/bin/celery --workdir=/usr/share/webapps/funkwhale/api -A funkwhale_api.taskapp worker -l INFO [Install] WantedBy=multi-user.target |