ProviderRetryOptions Struct
Retry options for providers.
The default is to retry 210 times for a bit over 24 hours with increasing interval.
Retries use full jitter, so every wait is a random time between zero and the calculated interval. This spreads out runners that all failed at the same time, so they don't hit the same missing capacity or API quota together again. It also means the average wait is half the calculated interval, and that's what the 24 hours are calculated from.
Initializer
import { ProviderRetryOptions } from '@cloudsnorkel/cdk-github-runners'
const providerRetryOptions: ProviderRetryOptions = { ... }import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.ProviderRetryOptions(
backoff_rate: typing.Union[int, float] = None,
interval: Duration = None,
max_attempts: typing.Union[int, float] = None,
max_delay: Duration = None,
retry: bool = None
)import com.cloudsnorkel.cdk.github.runners.ProviderRetryOptions;
ProviderRetryOptions.builder()
// .backoffRate(java.lang.Number)
// .interval(Duration)
// .maxAttempts(java.lang.Number)
// .maxDelay(Duration)
// .retry(java.lang.Boolean)
.build();using CloudSnorkel;
new ProviderRetryOptions {
double BackoffRate = null,
Duration Interval = null,
double MaxAttempts = null,
Duration MaxDelay = null,
bool Retry = null
};import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
&cloudsnorkelcdkgithubrunners.ProviderRetryOptions {
BackoffRate: *f64,
Interval: github.com/aws/aws-cdk-go/awscdk/v2.Duration,
MaxAttempts: *f64,
MaxDelay: github.com/aws/aws-cdk-go/awscdk/v2.Duration,
Retry: *bool,
}Properties
backoffRatebackoff_ratebackoffRateBackoffRateBackoffRate
backoffRate?: number
backoff_rate?: typing.Union[int, float]
backoffRate?: java.lang.Number
BackoffRate?: double
BackoffRate?: *f64
Multiplication for how much longer the wait interval gets on every retry.
Default: 2
intervalintervalintervalIntervalInterval
interval?: Duration
interval?: Duration
interval?: Duration
Interval?: Duration
Interval?: Duration
How much time to wait after first retryable failure.
This interval will be multiplied by ProviderRetryOptions.backoffRate each retry, up to ProviderRetryOptions.maxDelay.
Default: 1 minute
maxAttemptsmax_attemptsmaxAttemptsMaxAttemptsMaxAttempts
maxAttempts?: number
max_attempts?: typing.Union[int, float]
maxAttempts?: java.lang.Number
MaxAttempts?: double
MaxAttempts?: *f64
How many times to retry.
Default: 210
maxDelaymax_delaymaxDelayMaxDelayMaxDelay
maxDelay?: Duration
max_delay?: Duration
maxDelay?: Duration
MaxDelay?: Duration
MaxDelay?: Duration
Maximum wait between retries.
Without it, exponential backoff quickly grows to hours between attempts, so a job can end up waiting hours for a runner even though capacity came back minutes after it failed.
Don't go too low either. A lower maximum needs more attempts to cover the same 24 hours, and every attempt adds to the execution history that Step Functions caps at 25,000 events.
Default: 15 minutes
retryretryretryRetryRetry
retry?: boolean
retry?: bool
retry?: java.lang.Boolean
Retry?: bool
Retry?: *bool
Set to true to retry provider on supported failures.
Which failures generate a retry depends on the specific provider.
Default: true