Detector automatically detects hung provisioner jobs, sends messages into the build log and terminates them as failed.
| 87 | // Detector automatically detects hung provisioner jobs, sends messages into the |
| 88 | // build log and terminates them as failed. |
| 89 | type Detector struct { |
| 90 | ctx context.Context |
| 91 | cancel context.CancelFunc |
| 92 | done chan struct{} |
| 93 | |
| 94 | db database.Store |
| 95 | pubsub pubsub.Pubsub |
| 96 | log slog.Logger |
| 97 | tick <-chan time.Time |
| 98 | stats chan<- Stats |
| 99 | } |
| 100 | |
| 101 | // Stats contains statistics about the last run of the detector. |
| 102 | type Stats struct { |
nothing calls this directly
no outgoing calls
no test coverage detected