Skip to content

Commit de37171

Browse files
committed
chore: use create_invocation_completed method
1 parent 755a35e commit de37171

File tree

1 file changed

+4
-3
lines changed
  • src/aws_durable_execution_sdk_python_testing

1 file changed

+4
-3
lines changed

src/aws_durable_execution_sdk_python_testing/executor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,14 @@ def get_execution_history(
417417

418418
# Add InvocationCompleted events
419419
for completion in execution.invocation_completions:
420-
invocation_event = HistoryEvent(
420+
invocation_event = HistoryEvent.create_invocation_completed(
421421
event_id=0, # Temporary, will be reassigned
422-
event_type=EventType.INVOCATION_COMPLETED.value,
423422
event_timestamp=datetime.fromtimestamp(
424423
completion.end_timestamp, tz=UTC
425424
),
426-
invocation_completed_details=completion,
425+
start_timestamp=completion.start_timestamp,
426+
end_timestamp=completion.end_timestamp,
427+
request_id=completion.request_id,
427428
)
428429
all_events.append(invocation_event)
429430

0 commit comments

Comments
 (0)