cenkalti / kuyruk

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

Kuyruk inactive after python sys.exit #66

Closed nathan30 closed 4 years ago

nathan30 commented 4 years ago

Hi,

In my python program I have a sys.exit() in some case. When the sys.exit() is reached, my service (who runs kuyruk) became inactive. Is it normal ? Is there any way to keep the service active but exit the python script ?

cenkalti commented 4 years ago

I don't know how is your service running but you can call os._exit() from your script to exit immediately.

nathan30 commented 4 years ago

I don't know how is your service running but you can call os._exit() from your script to exit immediately.

It will not disable the kuyruk service ?

cenkalti commented 4 years ago

What do you mean by "kuyruk service"? Is it the worker or the service that is queuing tasks?