1 2 3 4 5
from prometheus_client import multiprocess def child_exit(server, worker): multiprocess.mark_process_dead(worker.pid)