mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-24 00:50:35 +00:00
b167364c5c
I think this will go a long way to solve the federation delay problems we're seeing on b.s. I'm not sure at what point adding more queues will create more problems than it solves, but I do think in this case the queues are out of balance and moving broadcasts (which are the most common type of `medium_priority` task at the moment) to their own queue will be an improvement.
14 lines
376 B
Desktop File
14 lines
376 B
Desktop File
[Unit]
|
|
Description=BookWyrm worker
|
|
After=network.target postgresql.service redis.service
|
|
|
|
[Service]
|
|
User=bookwyrm
|
|
Group=bookwyrm
|
|
WorkingDirectory=/opt/bookwyrm/
|
|
ExecStart=/opt/bookwyrm/venv/bin/celery -A celerywyrm worker -l info -Q high_priority,medium_priority,low_priority,import,broadcast
|
|
StandardOutput=journal
|
|
StandardError=inherit
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|