Explorar o código

result.join_native now respects propagate argument

Ask Solem %!s(int64=12) %!d(string=hai) anos
pai
achega
baa6463a17
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      celery/result.py

+ 2 - 0
celery/result.py

@@ -530,6 +530,8 @@ class ResultSet(ResultBase):
         acc = [None for _ in xrange(len(self))]
         for task_id, meta in self.iter_native(timeout=timeout,
                                               interval=interval):
+            if propagate and meta['status'] in states.PROPAGATE_STATES:
+                raise meta['result']
             acc[results.index(task_id)] = meta['result']
         return acc