@@ -48,37 +48,46 @@ message ScheduleActivityTaskCommandAttributes {
4848 temporal.api.taskqueue.v1.TaskQueue task_queue = 4 ;
4949 temporal.api.common.v1.Header header = 5 ;
5050 temporal.api.common.v1.Payloads input = 6 ;
51+ // Indicates how long the caller is willing to wait for activity completion. Limits how long
52+ // retries will be attempted. Either this or `start_to_close_timeout` must be specified. When
53+ // not specified, defaults to the workflow execution timeout.
54+ //
5155 // (-- api-linter: core::0140::prepositions=disabled
5256 // aip.dev/not-precedent: "to" is used to indicate interval. --)
53- // Indicates how long the caller is willing to wait for an activity completion.
54- // Limits for how long retries are happening. Either this or start_to_close_timeout_seconds must be specified.
55- // When not specified defaults to the workflow execution timeout.
5657 google.protobuf.Duration schedule_to_close_timeout = 7 [(gogoproto.stdduration ) = true ];
58+ // Limits the time an activity task can stay in a task queue before a worker picks it up. This
59+ // timeout is always non retryable, as all a retry would achieve is to put it back into the same
60+ // queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if that is not
61+ // specified.
62+ //
5763 // (-- api-linter: core::0140::prepositions=disabled
5864 // aip.dev/not-precedent: "to" is used to indicate interval. --)
59- // Limits time an activity task can stay in a task queue before a worker picks it up.
60- // This timeout is always non retryable as all a retry would achieve is to put it back into the same queue.
61- // Defaults to schedule_to_close_timeout_seconds or workflow execution timeout if not specified.
6265 google.protobuf.Duration schedule_to_start_timeout = 8 [(gogoproto.stdduration ) = true ];
66+ // Maximum time an activity is allowed to execute after being picked up by a worker. This
67+ // timeout is always retryable. Either this or `schedule_to_close_timeout` must be specified.
68+ //
6369 // (-- api-linter: core::0140::prepositions=disabled
6470 // aip.dev/not-precedent: "to" is used to indicate interval. --)
65- // Maximum time an activity is allowed to execute after a pick up by a worker.
66- // This timeout is always retryable. Either this or schedule_to_close_timeout_seconds must be specified.
6771 google.protobuf.Duration start_to_close_timeout = 9 [(gogoproto.stdduration ) = true ];
68- // Maximum time between successful worker heartbeats.
72+ // Maximum permitted time between successful worker heartbeats.
6973 google.protobuf.Duration heartbeat_timeout = 10 [(gogoproto.stdduration ) = true ];
70- // Activities are provided by a default retry policy controlled through the service dynamic configuration.
71- // Retries are happening up to schedule_to_close_timeout.
72- // To disable retries set retry_policy.maximum_attempts to 1.
74+ // Activities are provided by a default retry policy which is controlled through the service's
75+ // dynamic configuration. Retries will be attempted until ` schedule_to_close_timeout` has
76+ // elapsed. To disable retries set retry_policy.maximum_attempts to 1.
7377 temporal.api.common.v1.RetryPolicy retry_policy = 11 ;
7478}
7579
7680message RequestCancelActivityTaskCommandAttributes {
81+ // The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled.
7782 int64 scheduled_event_id = 1 ;
7883}
7984
8085message StartTimerCommandAttributes {
86+ // An id for the timer, currently live timers must have different ids. Typically autogenerated
87+ // by the SDK.
8188 string timer_id = 1 ;
89+ // How long until the timer fires, producing a `TIMER_FIRED` event.
90+ //
8291 // (-- api-linter: core::0140::prepositions=disabled
8392 // aip.dev/not-precedent: "to" is used to indicate interval. --)
8493 google.protobuf.Duration start_to_fire_timeout = 2 [(gogoproto.stdduration ) = true ];
@@ -93,6 +102,7 @@ message FailWorkflowExecutionCommandAttributes {
93102}
94103
95104message CancelTimerCommandAttributes {
105+ // The same timer id from the start timer command
96106 string timer_id = 1 ;
97107}
98108
@@ -104,16 +114,26 @@ message RequestCancelExternalWorkflowExecutionCommandAttributes {
104114 string namespace = 1 ;
105115 string workflow_id = 2 ;
106116 string run_id = 3 ;
117+ // Deprecated.
107118 string control = 4 ;
119+ // Set this to true if the workflow being cancelled is a child of the workflow originating this
120+ // command. The request will be rejected if it is set to true and the target workflow is *not*
121+ // a child of the requesting workflow.
108122 bool child_workflow_only = 5 ;
109123}
110124
111125message SignalExternalWorkflowExecutionCommandAttributes {
112126 string namespace = 1 ;
113127 temporal.api.common.v1.WorkflowExecution execution = 2 ;
128+ // The workflow author-defined name of the signal to send to the workflow.
114129 string signal_name = 3 ;
130+ // Serialized value(s) to provide with the signal.
115131 temporal.api.common.v1.Payloads input = 4 ;
132+ // Deprecated
116133 string control = 5 ;
134+ // Set this to true if the workflow being cancelled is a child of the workflow originating this
135+ // command. The request will be rejected if it is set to true and the target workflow is *not*
136+ // a child of the requesting workflow.
117137 bool child_workflow_only = 6 ;
118138 // Headers that are passed by the workflow that is sending a signal to the external
119139 // workflow that is receiving this signal.
@@ -135,20 +155,27 @@ message ContinueAsNewWorkflowExecutionCommandAttributes {
135155 temporal.api.common.v1.WorkflowType workflow_type = 1 ;
136156 temporal.api.taskqueue.v1.TaskQueue task_queue = 2 ;
137157 temporal.api.common.v1.Payloads input = 3 ;
138- // workflow_execution_timeout is omitted as it shouldn'be overridden from within a workflow.
158+
139159 // Timeout of a single workflow run.
140160 google.protobuf.Duration workflow_run_timeout = 4 [(gogoproto.stdduration ) = true ];
141161 // Timeout of a single workflow task.
142162 google.protobuf.Duration workflow_task_timeout = 5 [(gogoproto.stdduration ) = true ];
163+ // How long the workflow start will be delayed - not really a "backoff" in the traditional sense.
143164 google.protobuf.Duration backoff_start_interval = 6 [(gogoproto.stdduration ) = true ];
144165 temporal.api.common.v1.RetryPolicy retry_policy = 7 ;
166+ // Should be removed
145167 temporal.api.enums.v1.ContinueAsNewInitiator initiator = 8 ;
168+ // Should be removed
146169 temporal.api.failure.v1.Failure failure = 9 ;
170+ // Should be removed
147171 temporal.api.common.v1.Payloads last_completion_result = 10 ;
172+ // Should be removed. Not necessarily unused but unclear and not exposed by SDKs.
148173 string cron_schedule = 11 ;
149174 temporal.api.common.v1.Header header = 12 ;
150175 temporal.api.common.v1.Memo memo = 13 ;
151176 temporal.api.common.v1.SearchAttributes search_attributes = 14 ;
177+
178+ // `workflow_execution_timeout` is omitted as it shouldn't be overridden from within a workflow.
152179}
153180
154181message StartChildWorkflowExecutionCommandAttributes {
@@ -169,6 +196,7 @@ message StartChildWorkflowExecutionCommandAttributes {
169196 // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
170197 temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11 ;
171198 temporal.api.common.v1.RetryPolicy retry_policy = 12 ;
199+ // Establish a cron schedule for the child workflow.
172200 string cron_schedule = 13 ;
173201 temporal.api.common.v1.Header header = 14 ;
174202 temporal.api.common.v1.Memo memo = 15 ;
0 commit comments