Interface StepOptions<P>
interface StepOptions<P extends readonly StepPolicyClass[] = readonly []> {
name: string;
noRetryOnAbnormalTermination?: boolean;
policies?: P;
rescue?: RescueStepClass;
retryBudget?: number;
}
name: string;
noRetryOnAbnormalTermination?: boolean;
policies?: P;
rescue?: RescueStepClass;
retryBudget?: number;
}
Type Parameters
- P extends readonly StepPolicyClass[] = readonly []
The step policies attached to the step, as a list written in place.
Index
Properties
Readonlyname
name: string
The step's name: not empty, and unique in its workflow.
Optional Readonlyno Retry On Abnormal Termination
noRetryOnAbnormalTermination?: boolean
true to never retry an attempt that ends in an abnormal termination,
whatever the retry budget.
Optional Readonlypolicies
The step policies attached to the step, in the order their hooks are
looked up, each declared with @stepPolicy. The workflow must implement
the roles each of them requests.
Optional Readonlyrescue
The rescue step that runs, as <step name>_rescue, before the step runs
again after an attempt that failed, declared with @rescueStep.
Optional Readonlyretry Budget
retryBudget?: number
How many times the step may be retried after its first attempt, a whole number from 0: 0 when not given.
What a workflow says about one of its steps to
@withStep; its builder takes a step builder instead.