Skip to content

@usine/core/attempt/outcome

The operator canceled the Run during this Attempt.

  • Schema.Class

new AttemptCanceled(…args): AttemptCanceled

Parameter Type
…args [props?: object, options?: MakeOptions]

AttemptCanceled


The attempt failed with the typed failure that closed it.

  • Schema.Class

new AttemptFailed(…args): AttemptFailed

Parameter Type
…args [props: object, options?: MakeOptions]

AttemptFailed

readonly failure: InfraFailure | DefectFailure | AgentFailure | RunawayFailure | ChildSessionBudgetFailure


The attempt finished; the step result is stored on the Step.

  • Schema.Class

new AttemptSucceeded(…args): AttemptSucceeded

Parameter Type
…args [props?: object, options?: MakeOptions]

AttemptSucceeded

AttemptOutcome = typeof AttemptOutcome.Type

The recorded end of one try; a failed Attempt may still be followed by a retry of the same Step.

const AttemptOutcome: Schema.Union<readonly [typeof AttemptSucceeded, typeof AttemptFailed, typeof AttemptCanceled]>

The recorded end of one try; a failed Attempt may still be followed by a retry of the same Step.