Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
131
func
(p *Probe) HasRunOnce() bool {
132
p.RLock()
133
defer
p.RUnlock()
134
135
return
p.hasRunOnce
136
}
137
138
func
AreProbesHealthy(probes []*Probe) bool {
139
for
_, probe :=
range
probes {
Callers
6
TestHandlerSuccessHTTP
Function · 0.95
TestProbeHTTPFailure
Function · 0.95
TestProbeHTTPSuccess
Function · 0.95
TestHandlerSuccessTCP
Function · 0.80
TestDefaultProbeSuccess
Function · 0.80
TestDefaultProbeFailure
Function · 0.80
Calls
no outgoing calls
Tested by
6
TestHandlerSuccessHTTP
Function · 0.76
TestProbeHTTPFailure
Function · 0.76
TestProbeHTTPSuccess
Function · 0.76
TestHandlerSuccessTCP
Function · 0.64
TestDefaultProbeSuccess
Function · 0.64
TestDefaultProbeFailure
Function · 0.64