You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(buckets): Introduce maxWait timeout to generalized RetrySettings
RetrySettings are generalized and further described, as they also apply to Create's
wait for buckets to become active now.
A generalized maxWaitDuration is introduced for controlling when retries time out
if they take too long.
Update's retry is modified to honor the context being canceled directly - previously
an API call would be attempted and fail if the context times out.
// WithRetrySettings sets the maximum number of retries as well as duration between retries.
72
+
// These settings are honored wherever retries are used in the Client - most notably in Client.Update and Client.Upsert,
73
+
// as well as Client.Create when waiting for a bucket to become available after creation.
74
+
//
75
+
// Parameters:
76
+
// - maxRetries: maximum amount actions may be retries. (Some actions may ignore this and only honor maxWaitDuration)
77
+
// - durationBetweenTries: time.Duration to wait between tries.
78
+
// - maxWaitDuration: maximum time.Duration to wait before retrying is cancelled. If you supply a context.Context with a timeout, the shorter of the two will be honored.
0 commit comments