@@ -858,9 +858,10 @@ async def workflow_start_nexus_operation(
858858 service : str ,
859859 operation : Union [nexusrpc .Operation [InputT , OutputT ], str , Callable [..., Any ]],
860860 input : Any ,
861- output_type : Optional [Type [OutputT ]] = None ,
862- schedule_to_close_timeout : Optional [timedelta ] = None ,
863- headers : Optional [Mapping [str , str ]] = None ,
861+ output_type : Optional [Type [OutputT ]],
862+ schedule_to_close_timeout : Optional [timedelta ],
863+ cancellation_type : temporalio .workflow .NexusOperationCancellationType ,
864+ headers : Optional [Mapping [str , str ]],
864865 ) -> NexusOperationHandle [OutputT ]: ...
865866
866867 @abstractmethod
@@ -5169,6 +5170,7 @@ async def start_operation(
51695170 * ,
51705171 output_type : Optional [type [OutputT ]] = None ,
51715172 schedule_to_close_timeout : Optional [timedelta ] = None ,
5173+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
51725174 headers : Optional [Mapping [str , str ]] = None ,
51735175 ) -> NexusOperationHandle [OutputT ]: ...
51745176
@@ -5182,6 +5184,7 @@ async def start_operation(
51825184 * ,
51835185 output_type : Optional [type [OutputT ]] = None ,
51845186 schedule_to_close_timeout : Optional [timedelta ] = None ,
5187+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
51855188 headers : Optional [Mapping [str , str ]] = None ,
51865189 ) -> NexusOperationHandle [OutputT ]: ...
51875190
@@ -5198,6 +5201,7 @@ async def start_operation(
51985201 * ,
51995202 output_type : Optional [type [OutputT ]] = None ,
52005203 schedule_to_close_timeout : Optional [timedelta ] = None ,
5204+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
52015205 headers : Optional [Mapping [str , str ]] = None ,
52025206 ) -> NexusOperationHandle [OutputT ]: ...
52035207
@@ -5214,6 +5218,7 @@ async def start_operation(
52145218 * ,
52155219 output_type : Optional [type [OutputT ]] = None ,
52165220 schedule_to_close_timeout : Optional [timedelta ] = None ,
5221+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
52175222 headers : Optional [Mapping [str , str ]] = None ,
52185223 ) -> NexusOperationHandle [OutputT ]: ...
52195224
@@ -5230,6 +5235,7 @@ async def start_operation(
52305235 * ,
52315236 output_type : Optional [type [OutputT ]] = None ,
52325237 schedule_to_close_timeout : Optional [timedelta ] = None ,
5238+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
52335239 headers : Optional [Mapping [str , str ]] = None ,
52345240 ) -> NexusOperationHandle [OutputT ]: ...
52355241
@@ -5270,6 +5276,7 @@ async def execute_operation(
52705276 * ,
52715277 output_type : Optional [type [OutputT ]] = None ,
52725278 schedule_to_close_timeout : Optional [timedelta ] = None ,
5279+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
52735280 headers : Optional [Mapping [str , str ]] = None ,
52745281 ) -> OutputT : ...
52755282
@@ -5283,6 +5290,7 @@ async def execute_operation(
52835290 * ,
52845291 output_type : Optional [type [OutputT ]] = None ,
52855292 schedule_to_close_timeout : Optional [timedelta ] = None ,
5293+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
52865294 headers : Optional [Mapping [str , str ]] = None ,
52875295 ) -> OutputT : ...
52885296
@@ -5315,6 +5323,7 @@ async def execute_operation(
53155323 * ,
53165324 output_type : Optional [type [OutputT ]] = None ,
53175325 schedule_to_close_timeout : Optional [timedelta ] = None ,
5326+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
53185327 headers : Optional [Mapping [str , str ]] = None ,
53195328 ) -> OutputT : ...
53205329
@@ -5331,6 +5340,7 @@ async def execute_operation(
53315340 * ,
53325341 output_type : Optional [type [OutputT ]] = None ,
53335342 schedule_to_close_timeout : Optional [timedelta ] = None ,
5343+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
53345344 headers : Optional [Mapping [str , str ]] = None ,
53355345 ) -> OutputT : ...
53365346
@@ -5393,6 +5403,7 @@ async def start_operation(
53935403 * ,
53945404 output_type : Optional [type ] = None ,
53955405 schedule_to_close_timeout : Optional [timedelta ] = None ,
5406+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
53965407 headers : Optional [Mapping [str , str ]] = None ,
53975408 ) -> Any :
53985409 return (
@@ -5403,6 +5414,7 @@ async def start_operation(
54035414 input = input ,
54045415 output_type = output_type ,
54055416 schedule_to_close_timeout = schedule_to_close_timeout ,
5417+ cancellation_type = cancellation_type ,
54065418 headers = headers ,
54075419 )
54085420 )
@@ -5414,13 +5426,15 @@ async def execute_operation(
54145426 * ,
54155427 output_type : Optional [type ] = None ,
54165428 schedule_to_close_timeout : Optional [timedelta ] = None ,
5429+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
54175430 headers : Optional [Mapping [str , str ]] = None ,
54185431 ) -> Any :
54195432 handle = await self .start_operation (
54205433 operation ,
54215434 input ,
54225435 output_type = output_type ,
54235436 schedule_to_close_timeout = schedule_to_close_timeout ,
5437+ cancellation_type = cancellation_type ,
54245438 headers = headers ,
54255439 )
54265440 return await handle
0 commit comments