~sircmpwn/core.sr.ht

7d6920453d44c0e9ffa51155cb37d1e18e15267f — Ignas Kiela 12 days ago 2eb57ae
Create the metrics directory in gunicorn config
1 files changed, 1 insertions(+), 0 deletions(-)

M contrib/gunicorn.conf.py
M contrib/gunicorn.conf.py => contrib/gunicorn.conf.py +1 -0
@@ 5,6 5,7 @@ import os
def on_starting(server):
    multiprocess_dir = os.environ["prometheus_multiproc_dir"]
    shutil.rmtree(multiprocess_dir)
    os.mkdir(multiprocess_dir)

def child_exit(server, worker):
    multiprocess.mark_process_dead(worker.pid)
\ No newline at end of file