fix(processor): recovery process can be ended in time when the watchdog received stop command.

This commit is contained in:
2026-05-08 17:09:04 +08:00
parent 3ce076b8dc
commit 65f31f28f6
3 changed files with 61 additions and 44 deletions

17
global/vars.go Normal file
View File

@@ -0,0 +1,17 @@
package global
import (
"sync"
)
type ServiceMonitor struct {
ServiceName string
StopChan chan struct{}
Running bool
Recovery bool
}
var (
Monitors = make(map[string]*ServiceMonitor)
MonitorsMutex sync.RWMutex
)