#[non_exhaustive]pub enum RunStatus {
Completed,
CompletedWithErrors,
Stopped(Error),
TimedOut,
Cancelled,
}Expand description
How a run ended.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Completed
Every considered workflow finished and the message holds no errors.
CompletedWithErrors
Every considered workflow finished, but the message holds error records.
Stopped(Error)
A workflow stopped the run with this error. A function’s Err of
kind TimedOut or Cancelled, such as a child run’s propagated,
ends the run here when its task’s policies stop the run and it
returned before the run’s own deadline passed or its token was
cancelled: only the run’s own limits give the two statuses below.
TimedOut
The run’s deadline passed: at a check between ops or at a sweep, or
while a call ran that it then cut short or that returned Err
after it.
Cancelled
The run’s token, or one of its ancestors, was cancelled: before a
check, or while a call ran that it then cut short or that returned
Err after it.