(run Run, previousStatus RunStatus, action RunBootRecoveryAction)
| 1499 | } |
| 1500 | |
| 1501 | func invalidRunRecoveryTransition(run Run, previousStatus RunStatus, action RunBootRecoveryAction) error { |
| 1502 | return fmt.Errorf( |
| 1503 | "%w: task run %q cannot recover from %q via %q", |
| 1504 | ErrInvalidStatusTransition, |
| 1505 | run.ID, |
| 1506 | previousStatus, |
| 1507 | action, |
| 1508 | ) |
| 1509 | } |
| 1510 | |
| 1511 | func (m *Service) recordRecoveredRun( |
| 1512 | ctx context.Context, |
no outgoing calls
no test coverage detected