Procházet zdrojové kódy

[eventlet] Do not call blockdetection setup if no timeout set. Closes #1408

Ask Solem před 12 roky
rodič
revize
62a10d3211
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      celery/concurrency/eventlet.py

+ 2 - 1
celery/concurrency/eventlet.py

@@ -34,7 +34,8 @@ if not EVENTLET_NOPATCH and not PATCHED[0]:  # pragma: no cover
     import eventlet
     import eventlet
     import eventlet.debug
     import eventlet.debug
     eventlet.monkey_patch()
     eventlet.monkey_patch()
-    eventlet.debug.hub_blocking_detection(EVENTLET_DBLOCK)
+    if EVENTLET_DBLOCK:
+        eventlet.debug.hub_blocking_detection(EVENTLET_DBLOCK)
 
 
 from time import time
 from time import time