@@ -57,7 +57,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message):
57
57
HEARTBEAT_TIMEOUT_FIELD_NUMBER : builtins .int
58
58
RETRY_POLICY_FIELD_NUMBER : builtins .int
59
59
REQUEST_EAGER_EXECUTION_FIELD_NUMBER : builtins .int
60
- USE_COMPATIBLE_VERSION_FIELD_NUMBER : builtins .int
60
+ USE_WORKFLOW_BUILD_ID_FIELD_NUMBER : builtins .int
61
61
activity_id : builtins .str
62
62
@property
63
63
def activity_type (self ) -> temporalio .api .common .v1 .message_pb2 .ActivityType : ...
@@ -111,10 +111,9 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message):
111
111
"""Request to start the activity directly bypassing matching service and worker polling
112
112
The slot for executing the activity should be reserved when setting this field to true.
113
113
"""
114
- use_compatible_version : builtins .bool
115
- """If this is set, the workflow executing this command wishes to start the activity using
116
- a version compatible with the version that this workflow most recently ran on, if such
117
- behavior is possible.
114
+ use_workflow_build_id : builtins .bool
115
+ """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise,
116
+ Assignment rules of the activity's Task Queue will be used to determine the Build ID.
118
117
"""
119
118
def __init__ (
120
119
self ,
@@ -130,7 +129,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message):
130
129
heartbeat_timeout : google .protobuf .duration_pb2 .Duration | None = ...,
131
130
retry_policy : temporalio .api .common .v1 .message_pb2 .RetryPolicy | None = ...,
132
131
request_eager_execution : builtins .bool = ...,
133
- use_compatible_version : builtins .bool = ...,
132
+ use_workflow_build_id : builtins .bool = ...,
134
133
) -> None : ...
135
134
def HasField (
136
135
self ,
@@ -180,8 +179,8 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message):
180
179
b"start_to_close_timeout" ,
181
180
"task_queue" ,
182
181
b"task_queue" ,
183
- "use_compatible_version " ,
184
- b"use_compatible_version " ,
182
+ "use_workflow_build_id " ,
183
+ b"use_workflow_build_id " ,
185
184
],
186
185
) -> None : ...
187
186
@@ -600,7 +599,7 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
600
599
HEADER_FIELD_NUMBER : builtins .int
601
600
MEMO_FIELD_NUMBER : builtins .int
602
601
SEARCH_ATTRIBUTES_FIELD_NUMBER : builtins .int
603
- USE_COMPATIBLE_VERSION_FIELD_NUMBER : builtins .int
602
+ INHERIT_BUILD_ID_FIELD_NUMBER : builtins .int
604
603
@property
605
604
def workflow_type (self ) -> temporalio .api .common .v1 .message_pb2 .WorkflowType : ...
606
605
@property
@@ -636,9 +635,9 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
636
635
def search_attributes (
637
636
self ,
638
637
) -> temporalio .api .common .v1 .message_pb2 .SearchAttributes : ...
639
- use_compatible_version : builtins .bool
640
- """If this is set, the workflow executing this command wishes to continue as new using a version
641
- compatible with the version that this workflow most recently ran on .
638
+ inherit_build_id : builtins .bool
639
+ """If this is set, the new execution inherits the Build ID of the current execution. Otherwise,
640
+ the assignment rules will be used to independently assign a Build ID to the new execution .
642
641
"""
643
642
def __init__ (
644
643
self ,
@@ -659,7 +658,7 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
659
658
memo : temporalio .api .common .v1 .message_pb2 .Memo | None = ...,
660
659
search_attributes : temporalio .api .common .v1 .message_pb2 .SearchAttributes
661
660
| None = ...,
662
- use_compatible_version : builtins .bool = ...,
661
+ inherit_build_id : builtins .bool = ...,
663
662
) -> None : ...
664
663
def HasField (
665
664
self ,
@@ -701,6 +700,8 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
701
700
b"failure" ,
702
701
"header" ,
703
702
b"header" ,
703
+ "inherit_build_id" ,
704
+ b"inherit_build_id" ,
704
705
"initiator" ,
705
706
b"initiator" ,
706
707
"input" ,
@@ -715,8 +716,6 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
715
716
b"search_attributes" ,
716
717
"task_queue" ,
717
718
b"task_queue" ,
718
- "use_compatible_version" ,
719
- b"use_compatible_version" ,
720
719
"workflow_run_timeout" ,
721
720
b"workflow_run_timeout" ,
722
721
"workflow_task_timeout" ,
@@ -749,7 +748,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
749
748
HEADER_FIELD_NUMBER : builtins .int
750
749
MEMO_FIELD_NUMBER : builtins .int
751
750
SEARCH_ATTRIBUTES_FIELD_NUMBER : builtins .int
752
- USE_COMPATIBLE_VERSION_FIELD_NUMBER : builtins .int
751
+ INHERIT_BUILD_ID_FIELD_NUMBER : builtins .int
753
752
namespace : builtins .str
754
753
workflow_id : builtins .str
755
754
@property
@@ -784,10 +783,9 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
784
783
def search_attributes (
785
784
self ,
786
785
) -> temporalio .api .common .v1 .message_pb2 .SearchAttributes : ...
787
- use_compatible_version : builtins .bool
788
- """If this is set, the workflow executing this command wishes to start the child workflow using
789
- a version compatible with the version that this workflow most recently ran on, if such
790
- behavior is possible.
786
+ inherit_build_id : builtins .bool
787
+ """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment
788
+ rules of the child's Task Queue will be used to independently assign a Build ID to it.
791
789
"""
792
790
def __init__ (
793
791
self ,
@@ -809,7 +807,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
809
807
memo : temporalio .api .common .v1 .message_pb2 .Memo | None = ...,
810
808
search_attributes : temporalio .api .common .v1 .message_pb2 .SearchAttributes
811
809
| None = ...,
812
- use_compatible_version : builtins .bool = ...,
810
+ inherit_build_id : builtins .bool = ...,
813
811
) -> None : ...
814
812
def HasField (
815
813
self ,
@@ -845,6 +843,8 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
845
843
b"cron_schedule" ,
846
844
"header" ,
847
845
b"header" ,
846
+ "inherit_build_id" ,
847
+ b"inherit_build_id" ,
848
848
"input" ,
849
849
b"input" ,
850
850
"memo" ,
@@ -859,8 +859,6 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
859
859
b"search_attributes" ,
860
860
"task_queue" ,
861
861
b"task_queue" ,
862
- "use_compatible_version" ,
863
- b"use_compatible_version" ,
864
862
"workflow_execution_timeout" ,
865
863
b"workflow_execution_timeout" ,
866
864
"workflow_id" ,
@@ -897,6 +895,126 @@ class ProtocolMessageCommandAttributes(google.protobuf.message.Message):
897
895
898
896
global___ProtocolMessageCommandAttributes = ProtocolMessageCommandAttributes
899
897
898
+ class ScheduleNexusOperationCommandAttributes (google .protobuf .message .Message ):
899
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
900
+
901
+ class NexusHeaderEntry (google .protobuf .message .Message ):
902
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
903
+
904
+ KEY_FIELD_NUMBER : builtins .int
905
+ VALUE_FIELD_NUMBER : builtins .int
906
+ key : builtins .str
907
+ value : builtins .str
908
+ def __init__ (
909
+ self ,
910
+ * ,
911
+ key : builtins .str = ...,
912
+ value : builtins .str = ...,
913
+ ) -> None : ...
914
+ def ClearField (
915
+ self ,
916
+ field_name : typing_extensions .Literal ["key" , b"key" , "value" , b"value" ],
917
+ ) -> None : ...
918
+
919
+ ENDPOINT_FIELD_NUMBER : builtins .int
920
+ SERVICE_FIELD_NUMBER : builtins .int
921
+ OPERATION_FIELD_NUMBER : builtins .int
922
+ INPUT_FIELD_NUMBER : builtins .int
923
+ SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER : builtins .int
924
+ NEXUS_HEADER_FIELD_NUMBER : builtins .int
925
+ endpoint : builtins .str
926
+ """Endpoint name, must exist in the endpoint registry or this command will fail."""
927
+ service : builtins .str
928
+ """Service name."""
929
+ operation : builtins .str
930
+ """Operation name."""
931
+ @property
932
+ def input (self ) -> temporalio .api .common .v1 .message_pb2 .Payload :
933
+ """Input for the operation. The server converts this into Nexus request content and the appropriate content headers
934
+ internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the
935
+ content is transformed back to the original Payload sent in this command.
936
+ """
937
+ @property
938
+ def schedule_to_close_timeout (self ) -> google .protobuf .duration_pb2 .Duration :
939
+ """Schedule-to-close timeout for this operation.
940
+ Indicates how long the caller is willing to wait for operation completion.
941
+ Calls are retried internally by the server.
942
+ (-- api-linter: core::0140::prepositions=disabled
943
+ aip.dev/not-precedent: "to" is used to indicate interval. --)
944
+ """
945
+ @property
946
+ def nexus_header (
947
+ self ,
948
+ ) -> google .protobuf .internal .containers .ScalarMap [builtins .str , builtins .str ]:
949
+ """Header to attach to the Nexus request.
950
+ Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and
951
+ transmitted to external services as-is.
952
+ This is useful for propagating tracing information.
953
+ Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
954
+ transmitted to Nexus operations that may be external and are not traditional payloads.
955
+ """
956
+ def __init__ (
957
+ self ,
958
+ * ,
959
+ endpoint : builtins .str = ...,
960
+ service : builtins .str = ...,
961
+ operation : builtins .str = ...,
962
+ input : temporalio .api .common .v1 .message_pb2 .Payload | None = ...,
963
+ schedule_to_close_timeout : google .protobuf .duration_pb2 .Duration | None = ...,
964
+ nexus_header : collections .abc .Mapping [builtins .str , builtins .str ] | None = ...,
965
+ ) -> None : ...
966
+ def HasField (
967
+ self ,
968
+ field_name : typing_extensions .Literal [
969
+ "input" , b"input" , "schedule_to_close_timeout" , b"schedule_to_close_timeout"
970
+ ],
971
+ ) -> builtins .bool : ...
972
+ def ClearField (
973
+ self ,
974
+ field_name : typing_extensions .Literal [
975
+ "endpoint" ,
976
+ b"endpoint" ,
977
+ "input" ,
978
+ b"input" ,
979
+ "nexus_header" ,
980
+ b"nexus_header" ,
981
+ "operation" ,
982
+ b"operation" ,
983
+ "schedule_to_close_timeout" ,
984
+ b"schedule_to_close_timeout" ,
985
+ "service" ,
986
+ b"service" ,
987
+ ],
988
+ ) -> None : ...
989
+
990
+ global___ScheduleNexusOperationCommandAttributes = (
991
+ ScheduleNexusOperationCommandAttributes
992
+ )
993
+
994
+ class RequestCancelNexusOperationCommandAttributes (google .protobuf .message .Message ):
995
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
996
+
997
+ SCHEDULED_EVENT_ID_FIELD_NUMBER : builtins .int
998
+ scheduled_event_id : builtins .int
999
+ """The `NEXUS_OPERATION_SCHEDULED` event ID (a unique identifier) for the operation to be canceled.
1000
+ The operation may ignore cancellation and end up with any completion state.
1001
+ """
1002
+ def __init__ (
1003
+ self ,
1004
+ * ,
1005
+ scheduled_event_id : builtins .int = ...,
1006
+ ) -> None : ...
1007
+ def ClearField (
1008
+ self ,
1009
+ field_name : typing_extensions .Literal [
1010
+ "scheduled_event_id" , b"scheduled_event_id"
1011
+ ],
1012
+ ) -> None : ...
1013
+
1014
+ global___RequestCancelNexusOperationCommandAttributes = (
1015
+ RequestCancelNexusOperationCommandAttributes
1016
+ )
1017
+
900
1018
class Command (google .protobuf .message .Message ):
901
1019
DESCRIPTOR : google .protobuf .descriptor .Descriptor
902
1020
@@ -916,6 +1034,8 @@ class Command(google.protobuf.message.Message):
916
1034
UPSERT_WORKFLOW_SEARCH_ATTRIBUTES_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
917
1035
PROTOCOL_MESSAGE_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
918
1036
MODIFY_WORKFLOW_PROPERTIES_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
1037
+ SCHEDULE_NEXUS_OPERATION_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
1038
+ REQUEST_CANCEL_NEXUS_OPERATION_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
919
1039
command_type : temporalio .api .enums .v1 .command_type_pb2 .CommandType .ValueType
920
1040
@property
921
1041
def schedule_activity_task_command_attributes (
@@ -978,6 +1098,14 @@ class Command(google.protobuf.message.Message):
978
1098
self ,
979
1099
) -> global___ModifyWorkflowPropertiesCommandAttributes :
980
1100
"""16 is available for use - it was used as part of a prototype that never made it into a release"""
1101
+ @property
1102
+ def schedule_nexus_operation_command_attributes (
1103
+ self ,
1104
+ ) -> global___ScheduleNexusOperationCommandAttributes : ...
1105
+ @property
1106
+ def request_cancel_nexus_operation_command_attributes (
1107
+ self ,
1108
+ ) -> global___RequestCancelNexusOperationCommandAttributes : ...
981
1109
def __init__ (
982
1110
self ,
983
1111
* ,
@@ -1012,6 +1140,10 @@ class Command(google.protobuf.message.Message):
1012
1140
| None = ...,
1013
1141
modify_workflow_properties_command_attributes : global___ModifyWorkflowPropertiesCommandAttributes
1014
1142
| None = ...,
1143
+ schedule_nexus_operation_command_attributes : global___ScheduleNexusOperationCommandAttributes
1144
+ | None = ...,
1145
+ request_cancel_nexus_operation_command_attributes : global___RequestCancelNexusOperationCommandAttributes
1146
+ | None = ...,
1015
1147
) -> None : ...
1016
1148
def HasField (
1017
1149
self ,
@@ -1038,8 +1170,12 @@ class Command(google.protobuf.message.Message):
1038
1170
b"request_cancel_activity_task_command_attributes" ,
1039
1171
"request_cancel_external_workflow_execution_command_attributes" ,
1040
1172
b"request_cancel_external_workflow_execution_command_attributes" ,
1173
+ "request_cancel_nexus_operation_command_attributes" ,
1174
+ b"request_cancel_nexus_operation_command_attributes" ,
1041
1175
"schedule_activity_task_command_attributes" ,
1042
1176
b"schedule_activity_task_command_attributes" ,
1177
+ "schedule_nexus_operation_command_attributes" ,
1178
+ b"schedule_nexus_operation_command_attributes" ,
1043
1179
"signal_external_workflow_execution_command_attributes" ,
1044
1180
b"signal_external_workflow_execution_command_attributes" ,
1045
1181
"start_child_workflow_execution_command_attributes" ,
@@ -1077,8 +1213,12 @@ class Command(google.protobuf.message.Message):
1077
1213
b"request_cancel_activity_task_command_attributes" ,
1078
1214
"request_cancel_external_workflow_execution_command_attributes" ,
1079
1215
b"request_cancel_external_workflow_execution_command_attributes" ,
1216
+ "request_cancel_nexus_operation_command_attributes" ,
1217
+ b"request_cancel_nexus_operation_command_attributes" ,
1080
1218
"schedule_activity_task_command_attributes" ,
1081
1219
b"schedule_activity_task_command_attributes" ,
1220
+ "schedule_nexus_operation_command_attributes" ,
1221
+ b"schedule_nexus_operation_command_attributes" ,
1082
1222
"signal_external_workflow_execution_command_attributes" ,
1083
1223
b"signal_external_workflow_execution_command_attributes" ,
1084
1224
"start_child_workflow_execution_command_attributes" ,
@@ -1108,6 +1248,8 @@ class Command(google.protobuf.message.Message):
1108
1248
"upsert_workflow_search_attributes_command_attributes" ,
1109
1249
"protocol_message_command_attributes" ,
1110
1250
"modify_workflow_properties_command_attributes" ,
1251
+ "schedule_nexus_operation_command_attributes" ,
1252
+ "request_cancel_nexus_operation_command_attributes" ,
1111
1253
]
1112
1254
| None
1113
1255
): ...
0 commit comments