File tree Expand file tree Collapse file tree
tests/integration/testdata/durable/functions/wait_for_callback Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22from typing import Any
33
44from 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+ )
69from aws_durable_execution_sdk_python .execution import durable_execution
710from aws_durable_execution_sdk_python .config import Duration
811
912logger = logging .getLogger ()
1013logger .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
You can’t perform that action at this time.
0 commit comments