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 14, 2023
1 parent 798c32f commit 86362a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions temporal/api/common/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,13 @@ message ResetOptions {
// possibly others in the future.)
bool current_run_only = 11;
}

// Allow client to influence decisions made by the server when processing this request
message RequestedForActivity {
// 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;
}

5 changes: 5 additions & 0 deletions temporal/api/workflowservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,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
temporal.api.common.v1.RequestedForActivity requested = 7;
}

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

message RespondActivityTaskFailedByIdResponse {
Expand Down

0 comments on commit 86362a9

Please sign in to comment.