Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetryPolicyCustom ¶
type RetryPolicyCustom struct{}
RetryPolicyCustom is a retry policy demonstrating trivial customization.
type RetryPolicyInvalid ¶
type RetryPolicyInvalid struct{}
RetryPolicyInvalid is a retry policy that returns invalid timestamps.
type RetryPolicyNoJitter ¶
type RetryPolicyNoJitter struct {
baseservice.BaseService
}
RetryPolicyNoJitter is identical to default retry policy except that it leaves off the jitter to make checking against it more convenient.
type RetryPolicySlow ¶ added in v0.21.0
type RetryPolicySlow struct{}
RetryPolicySlow is a retry policy that has a very slow retry interval. This is used in tests that check retries to make sure that in slower environments (like GitHub Actions), jobs aren't accidentally set back to available or running before a paused test case can check to make sure it's in a retryable state.
func (*RetryPolicySlow) Interval ¶ added in v0.21.0
func (p *RetryPolicySlow) Interval() time.Duration
Interval is the slow retry interval exposed for use in test case assertions. Unlike the standard retry policy, RetryPolicySlow's interval is constant regardless of which attempt number the job was on.