Skip to content

Commit b5e5919

Browse files
committed
fix: update wait for callback example
1 parent 6262340 commit b5e5919

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/integration/testdata/durable/functions/wait_for_callback/wait_for_callback.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
from typing import Any
33

44
from aws_durable_execution_sdk_python.config import WaitForCallbackConfig
5-
from aws_durable_execution_sdk_python.context import DurableContext
5+
from aws_durable_execution_sdk_python.context import (
6+
DurableContext,
7+
WaitForCallbackContext,
8+
)
69
from aws_durable_execution_sdk_python.execution import durable_execution
710
from aws_durable_execution_sdk_python.config import Duration
811

912
logger = logging.getLogger()
1013
logger.setLevel(logging.INFO)
1114

1215

13-
def external_system_call(callback_id: str) -> None:
16+
def external_system_call(callback_id: str, _context: WaitForCallbackContext) -> None:
1417
"""Simulate calling an external system with callback ID."""
1518
# In real usage, this would make an API call to an external system
1619
# passing the callback_id for the system to call back when done

0 commit comments

Comments
 (0)