Explorar o código

Will now raise RuntimeError if a task attempts to join a subtask

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
b8f655adc1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/result.py

+ 1 - 1
celery/result.py

@@ -36,7 +36,7 @@ See http://docs.celeryq.org/en/latest/userguide/tasks.html\
 
 def assert_will_not_block():
     if task_join_will_block():
-        pass   # TODO future version: raise
+        raise RuntimeError(E_WOULDBLOCK)
 
 
 class ResultBase(object):