I'd like to start migrating processes over to use supervisor, but I'm hoping for a little more control over the processes that I have found so far. Is there a canonical way to handling "soft restarts" or tear downs in supervisor processes? For example, if I have a process like:
setup_logic() while True: run_logic() Is there a recommended way to schedule a restart of the process without interrupting the current loop? Is there a way to add a teardown hook to the process? For the second question, I'm currently registering my teardown via signal.signal(signal.SIGTERM, teardown), but I feel like both must be such common questions that better solutions must exist.
_______________________________________________ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users