MCPcopy
hub / github.com/celery/celery / successful

Method successful

celery/result.py:616–623  ·  view source on GitHub ↗

Return true if all tasks successful. Returns: bool: true if all of the tasks finished successfully (i.e. didn't raise an exception).

(self)

Source from the content-addressed store, hash-verified

614 self.results[:] = [] # don't create new list.
615
616 def successful(self):
617 """Return true if all tasks successful.
618
619 Returns:
620 bool: true if all of the tasks finished
621 successfully (i.e. didn't raise an exception).
622 """
623 return all(result.successful() for result in self.results)
624
625 def failed(self):
626 """Return true if any of the tasks failed.

Callers 15

test_result_set_errorMethod · 0.45
_producerFunction · 0.45
test_basic_taskMethod · 0.45
test_expiredMethod · 0.45
test_failMethod · 0.45
test_revokedMethod · 0.45
test_task_successMethod · 0.45
test_successfulMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_result_set_errorMethod · 0.36
_producerFunction · 0.36
test_basic_taskMethod · 0.36
test_expiredMethod · 0.36
test_failMethod · 0.36
test_revokedMethod · 0.36
test_task_successMethod · 0.36
test_successfulMethod · 0.36