Provides functionality to create the supervisor process.
- class blackhole.supervisor.Supervisor(*args, **kwargs)[source]
The supervisor process.
Responsible for monitoring and controlling child processes via an internal map of workers and the children they manage.
Spawn all of the required sockets and TLS contexts.
- create_socket(listeners, use_tls=False)[source]
Create supervisor socket.
Start all workers and their children.
Attaches signals and runs the event loop.
Start each worker and it’s child process.
Stop the workers and their respective child process.
Close all opened sockets.
- stop(*args, **kwargs)[source]
Terminate all of the workers.
Generally should be called by a signal, nothing else.
SystemExit – With code