Przeglądaj źródła

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

Ask Solem 12 lat temu
rodzic
commit
597b7ca837
1 zmienionych plików z 1 dodań i 0 usunięć
  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