blob: c60b64ebebfe7f0795c0d0e5ff342384003950c1 (
plain) (
blame)
1
2
3
4
5
|
# Code taken from https://github.com/prometheus/client_python#multiprocess-mode-eg-gunicorn
from prometheus_client import multiprocess
def child_exit(server, worker):
multiprocess.mark_process_dead(worker.pid)
|