Explorar el Código

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

Ask Solem hace 12 años
padre
commit
597b7ca837
Se han modificado 1 ficheros con 1 adiciones y 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