(run Run)
| 1336 | } |
| 1337 | |
| 1338 | func validateRunningSessionBinding(run Run) error { |
| 1339 | if strings.TrimSpace(run.SessionID) == "" { |
| 1340 | return fmt.Errorf( |
| 1341 | "%w: task run %q cannot transition from %q to %q without a session binding", |
| 1342 | ErrInvalidStatusTransition, |
| 1343 | run.ID, |
| 1344 | run.Status, |
| 1345 | TaskRunStatusRunning, |
| 1346 | ) |
| 1347 | } |
| 1348 | return nil |
| 1349 | } |
| 1350 | |
| 1351 | func (m *Service) recoverRunByRequeue( |
| 1352 | ctx context.Context, |