@@ -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
@@ -5318,6 +5326,7 @@ async def execute_operation(
53185326 * ,
53195327 output_type : Optional [type [OutputT ]] = None ,
53205328 schedule_to_close_timeout : Optional [timedelta ] = None ,
5329+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
53215330 headers : Optional [Mapping [str , str ]] = None ,
53225331 ) -> OutputT : ...
53235332
@@ -5334,6 +5343,7 @@ async def execute_operation(
53345343 * ,
53355344 output_type : Optional [type [OutputT ]] = None ,
53365345 schedule_to_close_timeout : Optional [timedelta ] = None ,
5346+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
53375347 headers : Optional [Mapping [str , str ]] = None ,
53385348 ) -> OutputT : ...
53395349
@@ -5396,6 +5406,7 @@ async def start_operation(
53965406 * ,
53975407 output_type : Optional [type ] = None ,
53985408 schedule_to_close_timeout : Optional [timedelta ] = None ,
5409+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
53995410 headers : Optional [Mapping [str , str ]] = None ,
54005411 ) -> Any :
54015412 return (
@@ -5406,6 +5417,7 @@ async def start_operation(
54065417 input = input ,
54075418 output_type = output_type ,
54085419 schedule_to_close_timeout = schedule_to_close_timeout ,
5420+ cancellation_type = cancellation_type ,
54095421 headers = headers ,
54105422 )
54115423 )
@@ -5417,13 +5429,15 @@ async def execute_operation(
54175429 * ,
54185430 output_type : Optional [type ] = None ,
54195431 schedule_to_close_timeout : Optional [timedelta ] = None ,
5432+ cancellation_type : NexusOperationCancellationType = NexusOperationCancellationType .WAIT_CANCELLATION_COMPLETED ,
54205433 headers : Optional [Mapping [str , str ]] = None ,
54215434 ) -> Any :
54225435 handle = await self .start_operation (
54235436 operation ,
54245437 input ,
54255438 output_type = output_type ,
54265439 schedule_to_close_timeout = schedule_to_close_timeout ,
5440+ cancellation_type = cancellation_type ,
54275441 headers = headers ,
54285442 )
54295443 return await handle
0 commit comments