Explorar o código

Adds EagerResult.task_name for API compatibility with AsyncResult (always set to None). Closes #907

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

+ 1 - 0
celery/result.py

@@ -650,6 +650,7 @@ class TaskSetResult(GroupResult):
 
 class EagerResult(AsyncResult):
     """Result that we know has already been executed."""
+    task_name = None
 
     def __init__(self, id, ret_value, state, traceback=None):
         self.id = id