@@ -97,7 +97,6 @@ class DurableExecutionInvocationInput:
9797 durable_execution_arn : str
9898 checkpoint_token : str
9999 initial_execution_state : InitialExecutionState
100- is_local_runner : bool
101100
102101 @staticmethod
103102 def from_dict (
@@ -109,15 +108,13 @@ def from_dict(
109108 initial_execution_state = InitialExecutionState .from_dict (
110109 input_dict .get ("InitialExecutionState" , {})
111110 ),
112- is_local_runner = input_dict .get ("LocalRunner" , False ),
113111 )
114112
115113 def to_dict (self ) -> MutableMapping [str , Any ]:
116114 return {
117115 "DurableExecutionArn" : self .durable_execution_arn ,
118116 "CheckpointToken" : self .checkpoint_token ,
119117 "InitialExecutionState" : self .initial_execution_state .to_dict (),
120- "LocalRunner" : self .is_local_runner ,
121118 }
122119
123120
@@ -139,7 +136,6 @@ def from_durable_execution_invocation_input(
139136 durable_execution_arn = invocation_input .durable_execution_arn ,
140137 checkpoint_token = invocation_input .checkpoint_token ,
141138 initial_execution_state = invocation_input .initial_execution_state ,
142- is_local_runner = invocation_input .is_local_runner ,
143139 service_client = service_client ,
144140 )
145141
@@ -237,15 +233,12 @@ def wrapper(event: Any, context: LambdaContext) -> MutableMapping[str, Any]:
237233 )
238234 raise ExecutionError (msg ) from e
239235
240- # Local runner always uses its own client, otherwise use custom or default
241- if invocation_input .is_local_runner :
242- service_client = LambdaClient .initialize_local_runner_client ()
243- else :
244- service_client = (
245- LambdaClient (client = boto3_client )
246- if boto3_client is not None
247- else LambdaClient .initialize_from_env ()
248- )
236+ # Use custom client if provided, otherwise initialize from environment
237+ service_client = (
238+ LambdaClient (client = boto3_client )
239+ if boto3_client is not None
240+ else LambdaClient .initialize_from_env ()
241+ )
249242
250243 raw_input_payload : str | None = (
251244 invocation_input .initial_execution_state .get_input_payload ()
0 commit comments