Skip to main content

check_run_transition

Function check_run_transition 

Source
pub fn check_run_transition(
    run: RunId,
    from: RunState,
    to: RunState,
) -> Result<(), RunError>
Expand description

Check a move from the run’s current state.

Working and waiting alternate, and either may end in any terminal state. A terminal state is final, and repeating the current state is not a transition.