Hello! I'm wondering if there's a solid pattern people are using for starting up multiple workers under systemd. I'm happy to help write up a page for the docs if there is.
I run multiple RQ instances via systemd template unit files. I have a template named [email protected]
which allows me to spin up additional workers by calling systemctl start [email protected]
, systemctl start [email protected]
etc.
All of them can also be reloaded by calling systemctl reload rqworker@*
.
More about systemd template unit files here: https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
If you can, please open a PR for this.
Thanks! That's the solution I ended up on as well, so it's nice to have some validation. I will open a PR, but probably won't get to it for a few weeks.
Most helpful comment
I run multiple RQ instances via systemd template unit files. I have a template named
[email protected]
which allows me to spin up additional workers by callingsystemctl start [email protected]
,systemctl start [email protected]
etc.All of them can also be reloaded by calling
systemctl reload rqworker@*
.More about systemd template unit files here: https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
If you can, please open a PR for this.