summarylogtreecommitdiffstats
path: root/funkwhale-worker.service
blob: a0185ad976fa29b650b4e3ffe8ec1a16c62ab063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=Funkwhale celery worker
After=redis.service postgresql.service
PartOf=funkwhale.service

[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
# a bigger memory footprint.
# By default, a worker will span a number of process equal to your number
# 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 --workdir=/usr/share/webapps/funkwhale/api -A funkwhale_api.taskapp worker -l INFO

[Install]
WantedBy=multi-user.target