Skip to content

Commit a995d4b

Browse files
Add fields for eager workflow dispatch from StartWorkflowExecution (#255)
Co-authored-by: Spencer Judge <[email protected]>
1 parent aaedf8b commit a995d4b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,19 @@ message StartWorkflowExecutionRequest {
168168
temporal.api.common.v1.Memo memo = 14;
169169
temporal.api.common.v1.SearchAttributes search_attributes = 15;
170170
temporal.api.common.v1.Header header = 16;
171+
// Request to get the first workflow task inline in the response bypassing matching service and worker polling.
172+
// If set to `true` the caller is expected to have a worker available and capable of processing the task.
173+
// The returned task will be marked as started and is expected to be completed by the specified
174+
// `workflow_task_timeout`.
175+
bool request_eager_execution = 17;
171176
}
172177

173178
message StartWorkflowExecutionResponse {
174179
string run_id = 1;
180+
// When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
181+
// return the first workflow task to be eagerly executed.
182+
// The caller is expected to have a worker available to process the task.
183+
PollWorkflowTaskQueueResponse eager_workflow_task = 2;
175184
}
176185

177186
message GetWorkflowExecutionHistoryRequest {
@@ -851,6 +860,9 @@ message GetSystemInfoResponse {
851860

852861
// True if server supports upserting workflow memo
853862
bool upsert_memo = 7;
863+
864+
// True if server supports eager workflow task dispatching for the StartWorkflowExecution API
865+
bool eager_workflow_start = 8;
854866
}
855867
}
856868

0 commit comments

Comments
 (0)