Skip to content

Commit d104c88

Browse files
authored
Rename DecisionTask to WorkflowTask (#72)
1 parent 33175ea commit d104c88

File tree

6 files changed

+113
-113
lines changed

6 files changed

+113
-113
lines changed

temporal/api/enums/v1/event_type.proto

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ enum EventType {
3636
EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED = 2;
3737
EVENT_TYPE_WORKFLOW_EXECUTION_FAILED = 3;
3838
EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT = 4;
39-
EVENT_TYPE_DECISION_TASK_SCHEDULED = 5;
40-
EVENT_TYPE_DECISION_TASK_STARTED = 6;
41-
EVENT_TYPE_DECISION_TASK_COMPLETED = 7;
42-
EVENT_TYPE_DECISION_TASK_TIMED_OUT = 8;
43-
EVENT_TYPE_DECISION_TASK_FAILED = 9;
39+
EVENT_TYPE_WORKFLOW_TASK_SCHEDULED = 5;
40+
EVENT_TYPE_WORKFLOW_TASK_STARTED = 6;
41+
EVENT_TYPE_WORKFLOW_TASK_COMPLETED = 7;
42+
EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT = 8;
43+
EVENT_TYPE_WORKFLOW_TASK_FAILED = 9;
4444
EVENT_TYPE_ACTIVITY_TASK_SCHEDULED = 10;
4545
EVENT_TYPE_ACTIVITY_TASK_STARTED = 11;
4646
EVENT_TYPE_ACTIVITY_TASK_COMPLETED = 12;

temporal/api/enums/v1/failed_cause.proto

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ option java_package = "io.temporal.api.enums.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "FailedCauseProto";
3131

32-
enum DecisionTaskFailedCause {
33-
DECISION_TASK_FAILED_CAUSE_UNSPECIFIED = 0;
34-
DECISION_TASK_FAILED_CAUSE_UNHANDLED_DECISION = 1;
35-
DECISION_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES = 2;
36-
DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES = 3;
37-
DECISION_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES = 4;
38-
DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES = 5;
39-
DECISION_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES = 6;
40-
DECISION_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES = 7;
41-
DECISION_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES = 8;
42-
DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES = 9;
43-
DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 10;
44-
DECISION_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES = 11;
45-
DECISION_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID = 12;
46-
DECISION_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE = 13;
47-
DECISION_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE = 14;
48-
DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 15;
49-
DECISION_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES = 16;
50-
DECISION_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION = 17;
51-
DECISION_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION = 18;
52-
DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE = 19;
53-
DECISION_TASK_FAILED_CAUSE_RESET_WORKFLOW = 20;
54-
DECISION_TASK_FAILED_CAUSE_BAD_BINARY = 21;
55-
DECISION_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID = 22;
56-
DECISION_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES = 23;
32+
enum WorkflowTaskFailedCause {
33+
WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED = 0;
34+
WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_DECISION = 1;
35+
WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES = 2;
36+
WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES = 3;
37+
WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES = 4;
38+
WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES = 5;
39+
WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES = 6;
40+
WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES = 7;
41+
WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES = 8;
42+
WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES = 9;
43+
WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 10;
44+
WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES = 11;
45+
WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID = 12;
46+
WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE = 13;
47+
WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE = 14;
48+
WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 15;
49+
WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES = 16;
50+
WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION = 17;
51+
WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION = 18;
52+
WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE = 19;
53+
WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW = 20;
54+
WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY = 21;
55+
WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID = 22;
56+
WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES = 23;
5757
}
5858

5959
enum StartChildWorkflowExecutionFailedCause {

temporal/api/enums/v1/task_queue.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ enum TaskQueueKind {
3737

3838
enum TaskQueueType {
3939
TASK_QUEUE_TYPE_UNSPECIFIED = 0;
40-
// Decision type of task queue.
41-
TASK_QUEUE_TYPE_DECISION = 1;
40+
// Workflow type of task queue.
41+
TASK_QUEUE_TYPE_WORKFLOW = 1;
4242
// Activity type of task queue.
4343
TASK_QUEUE_TYPE_ACTIVITY = 2;
4444
}

temporal/api/history/v1/message.proto

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ message WorkflowExecutionStartedEventAttributes {
6565
// This time is passed without change to the next run/retry of a workflow.
6666
int64 workflow_execution_expiration_timestamp = 19;
6767
string cron_schedule = 20;
68-
int32 first_decision_task_backoff_seconds = 21;
68+
int32 first_workflow_task_backoff_seconds = 21;
6969
temporal.api.common.v1.Memo memo = 22;
7070
temporal.api.common.v1.SearchAttributes search_attributes = 23;
7171
temporal.api.workflow.v1.ResetPoints prev_auto_reset_points = 24;
@@ -74,13 +74,13 @@ message WorkflowExecutionStartedEventAttributes {
7474

7575
message WorkflowExecutionCompletedEventAttributes {
7676
temporal.api.common.v1.Payloads result = 1;
77-
int64 decision_task_completed_event_id = 2;
77+
int64 workflow_task_completed_event_id = 2;
7878
}
7979

8080
message WorkflowExecutionFailedEventAttributes {
8181
temporal.api.failure.v1.Failure failure = 1;
8282
temporal.api.enums.v1.RetryState retry_state = 2;
83-
int64 decision_task_completed_event_id = 3;
83+
int64 workflow_task_completed_event_id = 3;
8484
}
8585

8686
message WorkflowExecutionTimedOutEventAttributes {
@@ -97,7 +97,7 @@ message WorkflowExecutionContinuedAsNewEventAttributes {
9797
int32 workflow_run_timeout_seconds = 5;
9898
// Timeout of a single workflow task.
9999
int32 workflow_task_timeout_seconds = 6;
100-
int64 decision_task_completed_event_id = 7;
100+
int64 workflow_task_completed_event_id = 7;
101101
int32 backoff_start_interval_in_seconds = 8;
102102
temporal.api.enums.v1.ContinueAsNewInitiator initiator = 9;
103103
temporal.api.failure.v1.Failure failure = 10;
@@ -107,35 +107,35 @@ message WorkflowExecutionContinuedAsNewEventAttributes {
107107
temporal.api.common.v1.SearchAttributes search_attributes = 14;
108108
}
109109

110-
message DecisionTaskScheduledEventAttributes {
110+
message WorkflowTaskScheduledEventAttributes {
111111
temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
112112
int32 start_to_close_timeout_seconds = 2;
113113
int64 attempt = 3;
114114
}
115115

116-
message DecisionTaskStartedEventAttributes {
116+
message WorkflowTaskStartedEventAttributes {
117117
int64 scheduled_event_id = 1;
118118
string identity = 2;
119119
string request_id = 3;
120120
}
121121

122-
message DecisionTaskCompletedEventAttributes {
122+
message WorkflowTaskCompletedEventAttributes {
123123
int64 scheduled_event_id = 1;
124124
int64 started_event_id = 2;
125125
string identity = 3;
126126
string binary_checksum = 4;
127127
}
128128

129-
message DecisionTaskTimedOutEventAttributes {
129+
message WorkflowTaskTimedOutEventAttributes {
130130
int64 scheduled_event_id = 1;
131131
int64 started_event_id = 2;
132132
temporal.api.enums.v1.TimeoutType timeout_type = 3;
133133
}
134134

135-
message DecisionTaskFailedEventAttributes {
135+
message WorkflowTaskFailedEventAttributes {
136136
int64 scheduled_event_id = 1;
137137
int64 started_event_id = 2;
138-
temporal.api.enums.v1.DecisionTaskFailedCause cause = 3;
138+
temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
139139
temporal.api.failure.v1.Failure failure = 4;
140140
string identity = 5;
141141
// For reset workflow.
@@ -164,7 +164,7 @@ message ActivityTaskScheduledEventAttributes {
164164
int32 start_to_close_timeout_seconds = 9;
165165
// Maximum time between successful worker heartbeats.
166166
int32 heartbeat_timeout_seconds = 10;
167-
int64 decision_task_completed_event_id = 11;
167+
int64 workflow_task_completed_event_id = 11;
168168
// Activities are provided by a default retry policy controlled through the service dynamic configuration.
169169
// Retries are happening up to schedule_to_close_timeout.
170170
// To disable retries set retry_policy.maximum_attempts to 1.
@@ -204,7 +204,7 @@ message ActivityTaskTimedOutEventAttributes {
204204

205205
message ActivityTaskCancelRequestedEventAttributes {
206206
int64 scheduled_event_id = 1;
207-
int64 decision_task_completed_event_id = 2;
207+
int64 workflow_task_completed_event_id = 2;
208208
}
209209

210210
message ActivityTaskCanceledEventAttributes {
@@ -218,7 +218,7 @@ message ActivityTaskCanceledEventAttributes {
218218
message TimerStartedEventAttributes {
219219
string timer_id = 1;
220220
int64 start_to_fire_timeout_seconds = 2;
221-
int64 decision_task_completed_event_id = 3;
221+
int64 workflow_task_completed_event_id = 3;
222222
}
223223

224224
message TimerFiredEventAttributes {
@@ -229,14 +229,14 @@ message TimerFiredEventAttributes {
229229
message TimerCanceledEventAttributes {
230230
string timer_id = 1;
231231
int64 started_event_id = 2;
232-
int64 decision_task_completed_event_id = 3;
232+
int64 workflow_task_completed_event_id = 3;
233233
string identity = 4;
234234
}
235235

236236
message CancelTimerFailedEventAttributes {
237237
string timer_id = 1;
238238
string cause = 2;
239-
int64 decision_task_completed_event_id = 3;
239+
int64 workflow_task_completed_event_id = 3;
240240
string identity = 4;
241241
}
242242

@@ -248,14 +248,14 @@ message WorkflowExecutionCancelRequestedEventAttributes {
248248
}
249249

250250
message WorkflowExecutionCanceledEventAttributes {
251-
int64 decision_task_completed_event_id = 1;
251+
int64 workflow_task_completed_event_id = 1;
252252
temporal.api.common.v1.Payloads details = 2;
253253
}
254254

255255
message MarkerRecordedEventAttributes {
256256
string marker_name = 1;
257257
map<string, temporal.api.common.v1.Payloads> details = 2;
258-
int64 decision_task_completed_event_id = 3;
258+
int64 workflow_task_completed_event_id = 3;
259259
temporal.api.common.v1.Header header = 4;
260260
temporal.api.failure.v1.Failure failure = 5;
261261
}
@@ -273,7 +273,7 @@ message WorkflowExecutionTerminatedEventAttributes {
273273
}
274274

275275
message RequestCancelExternalWorkflowExecutionInitiatedEventAttributes {
276-
int64 decision_task_completed_event_id = 1;
276+
int64 workflow_task_completed_event_id = 1;
277277
string namespace = 2;
278278
temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
279279
string control = 4;
@@ -282,7 +282,7 @@ message RequestCancelExternalWorkflowExecutionInitiatedEventAttributes {
282282

283283
message RequestCancelExternalWorkflowExecutionFailedEventAttributes {
284284
temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;
285-
int64 decision_task_completed_event_id = 2;
285+
int64 workflow_task_completed_event_id = 2;
286286
string namespace = 3;
287287
temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
288288
int64 initiated_event_id = 5;
@@ -296,7 +296,7 @@ message ExternalWorkflowExecutionCancelRequestedEventAttributes {
296296
}
297297

298298
message SignalExternalWorkflowExecutionInitiatedEventAttributes {
299-
int64 decision_task_completed_event_id = 1;
299+
int64 workflow_task_completed_event_id = 1;
300300
string namespace = 2;
301301
temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
302302
string signal_name = 4;
@@ -307,7 +307,7 @@ message SignalExternalWorkflowExecutionInitiatedEventAttributes {
307307

308308
message SignalExternalWorkflowExecutionFailedEventAttributes {
309309
temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause cause = 1;
310-
int64 decision_task_completed_event_id = 2;
310+
int64 workflow_task_completed_event_id = 2;
311311
string namespace = 3;
312312
temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
313313
int64 initiated_event_id = 5;
@@ -322,7 +322,7 @@ message ExternalWorkflowExecutionSignaledEventAttributes {
322322
}
323323

324324
message UpsertWorkflowSearchAttributesEventAttributes {
325-
int64 decision_task_completed_event_id = 1;
325+
int64 workflow_task_completed_event_id = 1;
326326
temporal.api.common.v1.SearchAttributes search_attributes = 2;
327327
}
328328

@@ -341,7 +341,7 @@ message StartChildWorkflowExecutionInitiatedEventAttributes {
341341
// Default: PARENT_CLOSE_POLICY_TERMINATE.
342342
temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
343343
string control = 10;
344-
int64 decision_task_completed_event_id = 11;
344+
int64 workflow_task_completed_event_id = 11;
345345
// Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
346346
temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 12;
347347
temporal.api.common.v1.RetryPolicy retry_policy = 13;
@@ -358,7 +358,7 @@ message StartChildWorkflowExecutionFailedEventAttributes {
358358
temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause cause = 4;
359359
string control = 5;
360360
int64 initiated_event_id = 6;
361-
int64 decision_task_completed_event_id = 7;
361+
int64 workflow_task_completed_event_id = 7;
362362
}
363363

364364
message ChildWorkflowExecutionStartedEventAttributes {
@@ -425,11 +425,11 @@ message HistoryEvent {
425425
WorkflowExecutionCompletedEventAttributes workflow_execution_completed_event_attributes = 7;
426426
WorkflowExecutionFailedEventAttributes workflow_execution_failed_event_attributes = 8;
427427
WorkflowExecutionTimedOutEventAttributes workflow_execution_timed_out_event_attributes = 9;
428-
DecisionTaskScheduledEventAttributes decision_task_scheduled_event_attributes = 10;
429-
DecisionTaskStartedEventAttributes decision_task_started_event_attributes = 11;
430-
DecisionTaskCompletedEventAttributes decision_task_completed_event_attributes = 12;
431-
DecisionTaskTimedOutEventAttributes decision_task_timed_out_event_attributes = 13;
432-
DecisionTaskFailedEventAttributes decision_task_failed_event_attributes = 14;
428+
WorkflowTaskScheduledEventAttributes workflow_task_scheduled_event_attributes = 10;
429+
WorkflowTaskStartedEventAttributes workflow_task_started_event_attributes = 11;
430+
WorkflowTaskCompletedEventAttributes workflow_task_completed_event_attributes = 12;
431+
WorkflowTaskTimedOutEventAttributes workflow_task_timed_out_event_attributes = 13;
432+
WorkflowTaskFailedEventAttributes workflow_task_failed_event_attributes = 14;
433433
ActivityTaskScheduledEventAttributes activity_task_scheduled_event_attributes = 15;
434434
ActivityTaskStartedEventAttributes activity_task_started_event_attributes = 16;
435435
ActivityTaskCompletedEventAttributes activity_task_completed_event_attributes = 17;

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,14 @@ message GetWorkflowExecutionHistoryResponse {
168168
bool archived = 4;
169169
}
170170

171-
message PollForDecisionTaskRequest {
171+
message PollWorkflowTaskQueueRequest {
172172
string namespace = 1;
173173
temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
174174
string identity = 3;
175175
string binary_checksum = 4;
176176
}
177177

178-
message PollForDecisionTaskResponse {
178+
message PollWorkflowTaskQueueResponse {
179179
bytes task_token = 1;
180180
temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
181181
temporal.api.common.v1.WorkflowType workflow_type = 3;
@@ -192,40 +192,40 @@ message PollForDecisionTaskResponse {
192192
map<string, temporal.api.query.v1.WorkflowQuery> queries = 14;
193193
}
194194

195-
message RespondDecisionTaskCompletedRequest {
195+
message RespondWorkflowTaskCompletedRequest {
196196
bytes task_token = 1;
197197
repeated temporal.api.decision.v1.Decision decisions = 2;
198198
string identity = 3;
199199
temporal.api.taskqueue.v1.StickyExecutionAttributes sticky_attributes = 4;
200-
bool return_new_decision_task = 5;
201-
bool force_create_new_decision_task = 6;
200+
bool return_new_workflow_task = 5;
201+
bool force_create_new_workflow_task = 6;
202202
string binary_checksum = 7;
203203
map<string, temporal.api.query.v1.WorkflowQueryResult> query_results = 8;
204204
}
205205

206-
message RespondDecisionTaskCompletedResponse {
207-
PollForDecisionTaskResponse decision_task = 1;
206+
message RespondWorkflowTaskCompletedResponse {
207+
PollWorkflowTaskQueueResponse workflow_task = 1;
208208
}
209209

210-
message RespondDecisionTaskFailedRequest {
210+
message RespondWorkflowTaskFailedRequest {
211211
bytes task_token = 1;
212-
temporal.api.enums.v1.DecisionTaskFailedCause cause = 2;
212+
temporal.api.enums.v1.WorkflowTaskFailedCause cause = 2;
213213
temporal.api.failure.v1.Failure failure = 3;
214214
string identity = 4;
215215
string binary_checksum = 5;
216216
}
217217

218-
message RespondDecisionTaskFailedResponse {
218+
message RespondWorkflowTaskFailedResponse {
219219
}
220220

221-
message PollForActivityTaskRequest {
221+
message PollActivityTaskQueueRequest {
222222
string namespace = 1;
223223
temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
224224
string identity = 3;
225225
temporal.api.taskqueue.v1.TaskQueueMetadata task_queue_metadata = 4;
226226
}
227227

228-
message PollForActivityTaskResponse {
228+
message PollActivityTaskQueueResponse {
229229
bytes task_token = 1;
230230
string workflow_namespace = 2;
231231
temporal.api.common.v1.WorkflowType workflow_type = 3;
@@ -573,5 +573,5 @@ message ListTaskQueuePartitionsRequest {
573573

574574
message ListTaskQueuePartitionsResponse {
575575
repeated temporal.api.taskqueue.v1.TaskQueuePartitionMetadata activity_task_queue_partitions = 1;
576-
repeated temporal.api.taskqueue.v1.TaskQueuePartitionMetadata decision_task_queue_partitions = 2;
576+
repeated temporal.api.taskqueue.v1.TaskQueuePartitionMetadata workflow_task_queue_partitions = 2;
577577
}

0 commit comments

Comments
 (0)