MCPcopy
hub / github.com/cortexlabs/cortex / HasRunOnce

Method HasRunOnce

pkg/probe/probe.go:131–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func (p *Probe) HasRunOnce() bool {
132 p.RLock()
133 defer p.RUnlock()
134
135 return p.hasRunOnce
136}
137
138func AreProbesHealthy(probes []*Probe) bool {
139 for _, probe := range probes {

Callers 6

TestHandlerSuccessHTTPFunction · 0.95
TestProbeHTTPFailureFunction · 0.95
TestProbeHTTPSuccessFunction · 0.95
TestHandlerSuccessTCPFunction · 0.80
TestDefaultProbeSuccessFunction · 0.80
TestDefaultProbeFailureFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestHandlerSuccessHTTPFunction · 0.76
TestProbeHTTPFailureFunction · 0.76
TestProbeHTTPSuccessFunction · 0.76
TestHandlerSuccessTCPFunction · 0.64
TestDefaultProbeSuccessFunction · 0.64
TestDefaultProbeFailureFunction · 0.64