Jelajahi Sumber

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

Ask Solem 12 tahun lalu
induk
melakukan
597b7ca837
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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