Skip to content

Commit

Permalink
Allow client to specify retry next interval
Browse files Browse the repository at this point in the history
  • Loading branch information
ast2023 committed Dec 7, 2023
1 parent 2e47a76 commit 32d3317
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions temporal/api/workflowservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,14 @@ message RespondActivityTaskCompletedByIdRequest {
message RespondActivityTaskCompletedByIdResponse {
}

message ActivityOverride {
// next_retry_delay can be used by the client to override the activity
// retry interval calculated by the retry policy. Retry attempts will
// still be subject to the maximum retries limit and total time limit
// defined by the policy.
google.protobuf.Duration next_retry_delay = 1;
}

message RespondActivityTaskFailedRequest {
// The task token as received in `PollActivityTaskQueueResponse`
bytes task_token = 1;
Expand All @@ -506,6 +514,9 @@ message RespondActivityTaskFailedRequest {
// always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
// field to true. See message docstrings for more.
temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
// Allow activity to influence decisions made by the server when processing this request
// with regards to this activity only
ActivityOverride overrides = 7;
}

message RespondActivityTaskFailedResponse {
Expand All @@ -529,6 +540,9 @@ message RespondActivityTaskFailedByIdRequest {
string identity = 6;
// Additional details to be stored as last activity heartbeat
temporal.api.common.v1.Payloads last_heartbeat_details = 7;
// Allow activity to influence decisions made by the server when processing this request
// with regards to this activity only
ActivityOverride overrides = 8;
}

message RespondActivityTaskFailedByIdResponse {
Expand Down

0 comments on commit 32d3317

Please sign in to comment.