Merge pull request #1836 from GSA/celery_tasks

fix monkeypatching
This commit is contained in:
ccostino
2025-07-15 17:55:55 -04:00
committed by GitHub

View File

@@ -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