The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
const (
// HungJobDuration is the duration of time since the last update// to a RUNNING job before it is considered hung.
HungJobDuration = 5 * time.Minute// PendingJobDuration is the duration of time since last update// to a PENDING job before it is considered dead.
PendingJobDuration = 30 * time.Minute// HungJobExitTimeout is the duration of time that provisioners should allow// for a graceful exit upon cancellation due to failing to send an update to// a job.//// Provisioners should avoid keeping a job "running" for longer than this// time after failing to send an update to the job.
HungJobExitTimeout = 3 * time.Minute// MaxJobsPerRun is the maximum number of hung jobs that the detector will// terminate in a single run.
MaxJobsPerRun = 10
)
Start will cause the detector to detect and unhang provisioner jobs on every
tick from its channel. It will stop when its context is Done, or when its
channel is closed.
WithStatsChannel will cause Executor to push a RunStats to ch after
every tick. This push is blocking, so if ch is not read, the detector will
hang. This should only be used in tests.
type Stats struct {
// TerminatedJobIDs contains the IDs of all jobs that were detected as hung and// terminated.
TerminatedJobIDs []uuid.UUID// Error is the fatal error that occurred during the last run of the// detector, if any. Error may be set to AcquireLockError if the detector// failed to acquire a lock.
Error error
}
Stats contains statistics about the last run of the detector.