2017-07-17 20:00:32 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Funkwhale celery worker
|
|
|
|
After=redis.service postgresql.service
|
|
|
|
PartOf=funkwhale.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=funkwhale
|
|
|
|
# adapt this depending on the path of your funkwhale installation
|
|
|
|
WorkingDirectory=/srv/funkwhale/api
|
|
|
|
EnvironmentFile=/srv/funkwhale/config/.env
|
2018-04-19 18:23:21 +00:00
|
|
|
# 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
|
2018-03-06 12:38:42 +00:00
|
|
|
ExecStart=/srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO
|
2017-07-17 20:00:32 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|