mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 17:45:41 -04:00
fix monkeypatching
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
import os
|
|
||||||
import socket
|
|
||||||
import sys
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
import eventlet
|
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
|
# This will give us a better stack trace if blocking occurs
|
||||||
debug.hub_blocking_detection(True)
|
debug.hub_blocking_detection(True)
|
||||||
workers = 4
|
workers = 4
|
||||||
|
|||||||
Reference in New Issue
Block a user