feat(watchdog): initialize watchdog connection and sync running instances

This commit is contained in:
2026-05-10 17:40:01 +08:00
parent ef27e7e0a9
commit e063a36e28
4 changed files with 54 additions and 18 deletions
+3 -4
View File
@@ -11,10 +11,6 @@ func Connect() bool {
return true
}
if err := Init(); err != nil {
return false
}
deadline := time.Now().Add(5 * time.Second)
var lastErr error
for {
@@ -45,7 +41,10 @@ func Connect() bool {
return false
}
syncRunningInstancesToWatchdog()
return true
}
func Disconnect() bool {