Closed asmodehn closed 6 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.
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...