File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
temporal/api/workflowservice/v1 Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
173178message 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
177186message 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
You can’t perform that action at this time.
0 commit comments