Skip to content

Commit f84e42e

Browse files
committed
fix: handle IncludeExecutionData query parameter as bool
1 parent e7ddc9b commit f84e42e

File tree

1 file changed

+3
-1
lines changed
  • src/aws_durable_execution_sdk_python_testing/web

1 file changed

+3
-1
lines changed

src/aws_durable_execution_sdk_python_testing/web/handlers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,13 @@ def handle(self, parsed_route: Route, request: HTTPRequest) -> HTTPResponse:
459459

460460
max_results: str | None = self._parse_query_param(request, "maxResults")
461461
next_token: str | None = self._parse_query_param(request, "nextToken")
462+
include_execution_data_str: str | None = self._parse_query_param(request, "IncludeExecutionData")
463+
include_execution_data: bool = include_execution_data_str == "true" if include_execution_data_str else False
462464

463465
history_response: GetDurableExecutionHistoryResponse = (
464466
self.executor.get_execution_history(
465467
execution_arn,
466-
include_execution_data=False,
468+
include_execution_data=include_execution_data,
467469
reverse_order=False,
468470
marker=next_token,
469471
max_items=int(max_results) if max_results else None,

0 commit comments

Comments
 (0)