aboutsummaryrefslogtreecommitdiffstats
path: root/gunicorn.conf.py
blob: 4930ae5b83332a78475e7253bf5f948e4fbeddb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
"""
Configuration file for gunicorn.

Code taken from https://github.com/prometheus/client_python#multiprocess-mode-eg-gunicorn
"""
from prometheus_client import multiprocess


def child_exit(server, worker) -> None:
    multiprocess.mark_process_dead(worker.pid)