Procházet zdrojové kódy

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

Ask Solem před 12 roky
rodič
revize
597b7ca837
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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