Skip to content

docs(map,parallel): document completion predicate and fix 2.x semantics - #273

Merged
ayushiahjolia merged 1 commit into
mainfrom
fix/map-parallel-completion-v2
Sep 8, 2026
Merged

docs(map,parallel): document completion predicate and fix 2.x semantics#273
ayushiahjolia merged 1 commit into
mainfrom
fix/map-parallel-completion-v2

Conversation

@ayushiahjolia

Copy link
Copy Markdown
Contributor

Issue #, if available: aws/aws-durable-execution-sdk-python#663

Description of changes:
Bring the Python map and parallel completion docs to 2.x:

  • Add should_complete to the Python CompletionConfig, with a Custom-completion-predicate walkthrough (complete_batch / continue_batch, CompletionStatus, CompletionOutcome, BatchCompletionError) and new custom-completion.py examples.
  • Fix throw_if_error: it raises ChildContextError / SerDesError / BatchCompletionError, not the removed CallableRuntimeError.
  • Correct the BatchResult.all semantics: started-but-incomplete items appear as STARTED; never-started items are omitted, so total_count excludes them.
  • Remove the false "all_completed() is deprecated" note; document the fail-fast default and all_completed() as the run-everything option.

Checks: mdformat, codespell, check_example_refs, zensical build all pass.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ayushiahjolia
ayushiahjolia marked this pull request as ready for review August 31, 2026 21:57
@ayushiahjolia
ayushiahjolia deployed to ai-pr-review-runtime August 31, 2026 21:57 — with GitHub Actions Active
@ayushiahjolia
ayushiahjolia merged commit f170cca into main Sep 8, 2026
19 of 22 checks passed
@ayushiahjolia
ayushiahjolia deleted the fix/map-parallel-completion-v2 branch September 8, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants