Commit 793eb7bc authored by Stratos Psomadakis's avatar Stratos Psomadakis
Browse files

webproject: Reset worker_age on gunicorn reload

Make sure to reset server.worker_age on gunicorn reload, so that the
post_fork gunicorn hook works as intended.
parent 767ca089
......@@ -20,7 +20,8 @@ import mmap
import pickle
import os
def find_hole(workers, fworkers):
old_key = []
......@@ -100,4 +101,8 @@ def worker_exit(server, worker):
def on_exit(server):
def on_reload(server):
server.worker_age = 0
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment