@@ -28,6 +28,10 @@ def service
2828 # @param operation [Symbol, String] Operation name.
2929 # @param arg [Object] Argument for the operation.
3030 # @param schedule_to_close_timeout [Float, nil] Total timeout for the operation in seconds.
31+ # @param schedule_to_start_timeout [Float, nil] Timeout in seconds for the operation to start executing. If the
32+ # operation has not started within this window, a SCHEDULE_TO_START timeout error is raised.
33+ # @param start_to_close_timeout [Float, nil] Timeout in seconds for an async operation to complete after it has
34+ # started. If the operation does not complete within this window, a START_TO_CLOSE timeout error is raised.
3135 # @param cancellation_type [NexusOperationCancellationType] How the operation will react to cancellation.
3236 # @param summary [String, nil] Optional summary for the operation (appears in UI/CLI).
3337 # @param cancellation [Cancellation] Cancellation for the operation.
@@ -38,6 +42,8 @@ def start_operation(
3842 operation ,
3943 arg ,
4044 schedule_to_close_timeout : nil ,
45+ schedule_to_start_timeout : nil ,
46+ start_to_close_timeout : nil ,
4147 cancellation_type : NexusOperationCancellationType ::WAIT_CANCELLATION_COMPLETED ,
4248 summary : nil ,
4349 cancellation : Workflow . cancellation ,
@@ -54,6 +60,10 @@ def start_operation(
5460 # @param operation [Symbol, String] Operation name.
5561 # @param arg [Object] Argument for the operation.
5662 # @param schedule_to_close_timeout [Float, nil] Total timeout for the operation in seconds.
63+ # @param schedule_to_start_timeout [Float, nil] Timeout in seconds for the operation to start executing. If the
64+ # operation has not started within this window, a SCHEDULE_TO_START timeout error is raised.
65+ # @param start_to_close_timeout [Float, nil] Timeout in seconds for an async operation to complete after it has
66+ # started. If the operation does not complete within this window, a START_TO_CLOSE timeout error is raised.
5767 # @param cancellation_type [NexusOperationCancellationType] How the operation will react to cancellation.
5868 # @param summary [String, nil] Optional summary for the operation (appears in UI/CLI).
5969 # @param cancellation [Cancellation] Cancellation for the operation.
@@ -65,15 +75,17 @@ def execute_operation(
6575 operation ,
6676 arg ,
6777 schedule_to_close_timeout : nil ,
78+ schedule_to_start_timeout : nil ,
79+ start_to_close_timeout : nil ,
6880 cancellation_type : NexusOperationCancellationType ::WAIT_CANCELLATION_COMPLETED ,
6981 summary : nil ,
7082 cancellation : Workflow . cancellation ,
7183 arg_hint : nil ,
7284 result_hint : nil
7385 )
7486 start_operation (
75- operation , arg , schedule_to_close_timeout :, cancellation_type :, summary : , cancellation :,
76- arg_hint :, result_hint :
87+ operation , arg , schedule_to_close_timeout :, schedule_to_start_timeout :, start_to_close_timeout :,
88+ cancellation_type : , summary : , cancellation : , arg_hint :, result_hint :
7789 ) . result
7890 end
7991 end
0 commit comments