parallel optimization groundwork

This commit is contained in:
LPF
2026-05-10 17:27:06 +08:00
parent ce2263ac8c
commit 7b07bb270b
37 changed files with 6896 additions and 3481 deletions

View File

@@ -16,6 +16,11 @@ import (
type AlertFunc func(msg string)
type channelHealthManager interface {
CheckHealth(ctx context.Context) map[string]error
RestartChannel(ctx context.Context, name string) error
}
type Service struct {
cfgPath string
workspace string
@@ -25,7 +30,7 @@ type Service struct {
runner *lifecycle.LoopRunner
mu sync.RWMutex
lastAlerts map[string]time.Time
mgr *channels.Manager
mgr channelHealthManager
healingChannels map[string]bool
}