Explorar el Código

Adds example working with result trees.

Ask Solem hace 13 años
padre
commit
ac49fad68d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/result.py

+ 1 - 1
celery/result.py

@@ -510,7 +510,7 @@ class EagerResult(AsyncResult):
     def get(self, timeout=None, propagate=True, **kwargs):
         if self.successful():
             return self.result
-        elif self._state in states.PROPAGATE_STATES:
+        elif self.state in states.PROPAGATE_STATES:
             if propagate:
                 raise self.result
             return self.result