R-772 (found live on 9202 with v0.286.0): a stopped probe container is seen on the next tick, not when the last healthy record's 5-minute interval runs out
Finding the container costs no network call, so it now runs before the interval check. Red-proof RP-D1b. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -38,6 +38,16 @@ func (m *Manager) RunHealthProbes() error {
|
||||
continue
|
||||
}
|
||||
|
||||
// R-772 (measured live on 9202, v0.286.0): a container that stops is seen at once, not when the interval of the
|
||||
// last HEALTHY result runs out (up to 5 minutes later) — finding the container costs no network call, so it is
|
||||
// done before the interval check, and a stack with nothing to probe is recorded "not checked" on this tick.
|
||||
containerName, candidates := findProbeContainerMeta(name, &stack.Meta, stack.Containers)
|
||||
if containerName == "" {
|
||||
skippedNoContainer++
|
||||
noProbe = append(noProbe, noProbeStack{name: name, candidates: candidates})
|
||||
continue
|
||||
}
|
||||
|
||||
// Check if interval has elapsed since last probe.
|
||||
// Fast 10s probes until healthy, then normal interval (default 5m).
|
||||
// When HealthProbe is nil (just started/restarted), probe immediately.
|
||||
@@ -58,16 +68,8 @@ func (m *Manager) RunHealthProbes() error {
|
||||
}
|
||||
}
|
||||
|
||||
// Find the main container to probe. R-630: a stack whose check resolves to no container
|
||||
// used to be skipped SILENTLY — paperless-ngx's probe had therefore never run on any box,
|
||||
// and nothing on any screen could say so. It now gets a RESULT that says why, so the app
|
||||
// page can tell "checked and healthy" from "never checked".
|
||||
containerName, candidates := findProbeContainerMeta(name, &stack.Meta, stack.Containers)
|
||||
if containerName == "" {
|
||||
skippedNoContainer++
|
||||
noProbe = append(noProbe, noProbeStack{name: name, candidates: candidates})
|
||||
continue
|
||||
}
|
||||
// R-630: a stack whose check resolves to no container used to be skipped SILENTLY — paperless-ngx's probe had
|
||||
// therefore never run on any box. It gets a RESULT that says why (above, before the interval check).
|
||||
|
||||
targets = append(targets, probeTarget{
|
||||
stackName: name,
|
||||
|
||||
Reference in New Issue
Block a user