pyros-dev / pyzmp

ZeroMQ based multiprocessing framework for python
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Signals Handling #10

Closed asmodehn closed 6 years ago

asmodehn commented 8 years ago

A running node can be shutdown by calling shutdown() method.

But we might want to also setup signals ( so the process calls shutdown when receiving SIGTERM for example)...

Check : https://github.com/asmodehn/pyros/issues/105

We need to find where is the proper place, and what are the appropriate flow for when the whole process gets killed from outside...

asmodehn commented 8 years ago

After thinking a bit about this, it probably should be left to the pyzmp user (pyros or other) to deal with it...

pyzmp is a library that allows a program to do python multiprocess communication easily. To keep things simple, we should have only one protocol that does everything needed for this goal.

Adding signal handling here would mean that we have another communication protocol, to communicate with something that is not a pyzmp node, and it would make things more complex than necessary.

I should probably work on some examples with pyzmp about this topic as a first step.

asmodehn commented 6 years ago

This should probably be done at the CoProcess level and eventually get merged into colos. As it is not a priority for pyzmp I will move this issue to colos.