cenkalti / kuyruk

⚙️ Simple task queue for Python
https://kuyruk.readthedocs.org/
MIT License
234 stars 17 forks source link

Check if a worker already launched #60

Closed nathan30 closed 5 years ago

nathan30 commented 5 years ago

Hi,

First, thanks for your work ! I used it with success in my Python project but I'm facing a problem. I need to have a control of the worker (See if one worker is already launched for exemple, to avoid launch two worker). Is there any possibilities to do that ?

cenkalti commented 5 years ago

Kuyruk has no such feature. You can use a wrapper shell script that check running processes before starting a worker but I don't recommend it. I would use a proper process manager such as systemd.