From 2c9d5bdeb58973303182f56219fb6cdcc12ea347 Mon Sep 17 00:00:00 2001 From: Wenlong Gu Date: Thu, 1 Oct 2026 17:21:08 -0500 Subject: [PATCH] Add eager standalone activity start API --- temporal/api/workflowservice/v1/request_response.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/temporal/api/workflowservice/v1/request_response.proto b/temporal/api/workflowservice/v1/request_response.proto index 1aae988d8..c17c82055 100644 --- a/temporal/api/workflowservice/v1/request_response.proto +++ b/temporal/api/workflowservice/v1/request_response.proto @@ -3270,6 +3270,9 @@ message StartActivityExecutionRequest { temporal.api.common.v1.OnConflictOptions on_conflict_options = 21; // Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts. google.protobuf.Duration start_delay = 22; + // Request that the first activity task be returned directly in the start response instead of + // being dispatched through a task queue. The server may decline this request. + bool request_eager_execution = 23; } message StartActivityExecutionResponse { @@ -3279,6 +3282,9 @@ message StartActivityExecutionResponse { bool started = 2; // Link to the started activity. temporal.api.common.v1.Link link = 3; + // The first activity task when eager execution was requested and accepted. + // This is set only for the first attempt of a newly started activity. + PollActivityTaskQueueResponse eager_activity_task = 4; } message DescribeActivityExecutionRequest {