From 2d6e18d115ff55916f04c2684a5be2abaa41d21d Mon Sep 17 00:00:00 2001 From: Hannah Hunter Date: Mon, 6 Mar 2023 15:39:46 -0600 Subject: [PATCH 1/2] clarify timeout section Signed-off-by: Hannah Hunter --- daprdocs/content/en/operations/resiliency/policies.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/operations/resiliency/policies.md b/daprdocs/content/en/operations/resiliency/policies.md index 515e030b0..c376f898b 100644 --- a/daprdocs/content/en/operations/resiliency/policies.md +++ b/daprdocs/content/en/operations/resiliency/policies.md @@ -12,12 +12,12 @@ Define timeouts, retries, and circuit breaker policies under `policies`. Each po ## Timeouts -Timeouts can be used to early-terminate long-running operations. If you've exceeded a timeout duration: +Timeouts are optional policies that can be used to early-terminate long-running operations. If you've exceeded a timeout duration: - The operation in progress is terminated (if possible). - An error is returned. -Valid values are of the form accepted by Go's [time.ParseDuration](https://pkg.go.dev/time#ParseDuration), for example: `15s`, `2m`, `1h30m`. +Valid values are of the form accepted by Go's [time.ParseDuration](https://pkg.go.dev/time#ParseDuration), for example: `15s`, `2m`, `1h30m`. Timeouts have no set maximum value. Example: @@ -31,6 +31,8 @@ spec: largeResponse: 10s ``` +If you don't specify a timeout value, the policy will not enforce a time and will default to whatever you set up per the request client. + ## Retries With `retries`, you can define a retry strategy for failed operations, including requests failed due to triggering a defined timeout or circuit breaker policy. The following retry options are configurable: From 960550442b66d112ffce91e9ca1706bd0b46bc40 Mon Sep 17 00:00:00 2001 From: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Date: Fri, 17 Mar 2023 17:44:42 -0400 Subject: [PATCH 2/2] Update daprdocs/content/en/operations/resiliency/policies.md Co-authored-by: Mark Fussell Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> --- daprdocs/content/en/operations/resiliency/policies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/operations/resiliency/policies.md b/daprdocs/content/en/operations/resiliency/policies.md index c376f898b..fae97baf8 100644 --- a/daprdocs/content/en/operations/resiliency/policies.md +++ b/daprdocs/content/en/operations/resiliency/policies.md @@ -31,7 +31,7 @@ spec: largeResponse: 10s ``` -If you don't specify a timeout value, the policy will not enforce a time and will default to whatever you set up per the request client. +If you don't specify a timeout value, the policy does not enforce a time and defaults to whatever you set up per the request client. ## Retries