Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A sample gunicorn hooks configuration
def on_starting(server):
Do something on server start
print("Server has started")
def on_reload(server):
Do something on reload
print("Server has reloaded")
def post_worker_init(worker):
Do something on worker initialization
print("Worker has been initialized. Worker Process id -->",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment