Skip to content

Commit d7363fe

Browse files
committed
docs(tests): use get_results in Python parallel-workflow example
results.get_succeeded() is not a valid method on the Python BatchResult. The handler raises AttributeError and the durable execution fails, so the test asserting InvocationStatus.SUCCEEDED would fail. Use results.get_results() to mirror the TypeScript fix in #196.
1 parent 9e0fea1 commit d7363fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/python/testing/examples/parallel-workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def handler(event, context: DurableContext) -> list:
2929
],
3030
name="fetch-all",
3131
)
32-
return results.get_succeeded()
32+
return results.get_results()
3333

3434

3535
def test_executes_branches_in_parallel():

0 commit comments

Comments
 (0)