MCPcopy Index your code
hub / github.com/coder/coder / Detector

Struct Detector

coderd/jobreaper/detector.go:89–99  ·  view source on GitHub ↗

Detector automatically detects hung provisioner jobs, sends messages into the build log and terminates them as failed.

Source from the content-addressed store, hash-verified

87// Detector automatically detects hung provisioner jobs, sends messages into the
88// build log and terminates them as failed.
89type 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.
102type Stats struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected