From 7deec9a6c68a94b370d2711e1ad151083f0bd060 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 15 Jul 2025 14:03:08 -0700 Subject: [PATCH] fix monkeypatching --- gunicorn_config.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/gunicorn_config.py b/gunicorn_config.py index 275314b53..135d2d9cb 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -1,13 +1,15 @@ -import os -import socket -import sys -import traceback - import eventlet -import eventlet.debug as debug -import gunicorn -eventlet.monkey_patch() +eventlet.monkey_patch() # this has to be called before other imports or monkey patching doesn't happen + +import os # noqa +import socket # noqa +import sys # noqa +import traceback # noqa + +import eventlet.debug as debug # noqa +import gunicorn # noqa + # This will give us a better stack trace if blocking occurs debug.hub_blocking_detection(True) workers = 4