Skip to content

feat(sdk): support custom summaryGenerator in map and parallel config#696

Merged
ParidelPooya merged 1 commit into
mainfrom
feat/parallel-map-summary-generator
Jul 7, 2026
Merged

feat(sdk): support custom summaryGenerator in map and parallel config#696
ParidelPooya merged 1 commit into
mainfrom
feat/parallel-map-summary-generator

Conversation

@ParidelPooya

Copy link
Copy Markdown
Contributor

ParallelConfig and MapConfig now expose an optional summaryGenerator, which the parallel and map handlers forward to executeConcurrently instead of always using the internal default. The default generator is still used when none is supplied, so existing behavior is unchanged (backward compatible).

The summary is used as the checkpointed payload when a batch result exceeds the checkpoint size limit (ReplayChildren mode).

Adds handler unit tests asserting the user-provided generator is forwarded (and the default is used otherwise), plus an integration example under aws-durable-execution-sdk-js-examples that verifies the custom summary is checkpointed for a large parallel result.

Issue #, if available: #500

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

ParallelConfig and MapConfig now expose an optional summaryGenerator,
which the parallel and map handlers forward to executeConcurrently
instead of always using the internal default. The default generator is
still used when none is supplied, so existing behavior is unchanged
(backward compatible).

The summary is used as the checkpointed payload when a batch result
exceeds the checkpoint size limit (ReplayChildren mode).

Adds handler unit tests asserting the user-provided generator is
forwarded (and the default is used otherwise), plus an integration
example under aws-durable-execution-sdk-js-examples that verifies the
custom summary is checkpointed for a large parallel result.

Closes #500
@ParidelPooya
ParidelPooya marked this pull request as ready for review July 7, 2026 21:39
@ParidelPooya
ParidelPooya merged commit a3e45c2 into main Jul 7, 2026
28 of 29 checks passed
@ParidelPooya
ParidelPooya deleted the feat/parallel-map-summary-generator branch July 7, 2026 22:23
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