Class WorkflowRetry
How an agent or tool step is tried again when an attempt fails (Retry): how many attempts in all, how long to wait between them, and which failures are worth another attempt. A tool that writes is tried again with the same idempotency key; one that does not honor keys is tried again only when the other system said it did not process the call (HTTP 429 or 503).
public sealed class WorkflowRetry
- Inheritance
-
WorkflowRetry
- Inherited Members
Fields
- ErrorClass
Failure class: any other failure (an HTTP 4xx answer, a tool or an agent error).
- ExponentialBackoff
Backoff: the wait doubles after each attempt, up to MaxDelaySeconds. The default.
- FixedBackoff
Backoff: the same wait before every attempt.
- MaxAttemptsLimit
The most attempts a step may make.
- MaxWaitSeconds
The longest wait between two attempts a workflow accepts, in seconds.
- TimeoutClass
Failure class: the attempt ran past the step's TimeoutSeconds.
- TransientClass
Failure class: the other system was unavailable or overloaded (HTTP 408, 429 or 5xx, or a call that did not complete).
Properties
- Backoff
Gets or sets how the wait grows:
exponential(default) orfixed.
- DelaySeconds
Gets or sets the wait before the second attempt, in seconds (0 to 3600). Default 1.
- MaxAttempts
Gets or sets how many attempts the step makes in all, the first included (1 to 10). Default 3.
- MaxDelaySeconds
Gets or sets the longest wait between two attempts, in seconds (0 to 3600). Default 300.
- RetryOn
Gets or sets the failure classes worth another attempt:
timeout,transient,error. Null fortimeoutandtransient, so an answer such as HTTP 400 is not tried again unlesserroris listed.
Methods
- Covers(string)
Whether a failure of this class is worth another attempt.
- DelayBefore(int)
The wait before an attempt, jittered by up to a fifth so the retries of many runs spread out.