瀏覽代碼

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

Ask Solem 11 年之前
父節點
當前提交
b8f655adc1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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):