diff options
author | 2021-09-05 07:43:44 -0400 | |
---|---|---|
committer | 2021-09-05 07:43:44 -0400 | |
commit | 12c09e08ca50a271372adeaf0cb21d6c4ca9ccea (patch) | |
tree | 1ac76fddbc476001133aac2f55e414269de47744 /gunicorn.conf.py | |
parent | Add `tutorial` and `video` tags for RealPython. (diff) | |
parent | Merge pull request #581 from python-discord/Pin-platform-in-Dockerfile (diff) |
Merge with main, resolve conflicts.
Diffstat (limited to 'gunicorn.conf.py')
-rw-r--r-- | gunicorn.conf.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gunicorn.conf.py b/gunicorn.conf.py new file mode 100644 index 00000000..4930ae5b --- /dev/null +++ b/gunicorn.conf.py @@ -0,0 +1,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) |