fix: handle plugin route health update errors

This commit is contained in:
shaw
2026-08-24 10:02:06 +08:00
parent 391d69e086
commit 40aaf7b3ae
+3 -1
View File
@@ -310,7 +310,9 @@ func (m *PluginManager) reconcileOnce(ctx context.Context) error {
healthErr := current.runtime.checkHealth(healthCtx)
cancel()
if healthErr != nil {
m.markRuntimeUnavailable(current, healthErr.Error())
if stateErr := m.markRuntimeUnavailable(current, healthErr.Error()); stateErr != nil {
return errors.Join(healthErr, stateErr)
}
return healthErr
}
if enabled.State == PluginStateError || (enabled.State == PluginStateStarting && m.startingStateExpired(enabled)) {