feat(deploy): 在线更新 - 新增后台检查、强制备份迁移与失败自动回退

This commit is contained in:
ddCat committed 2026-08-30 22:15:17 +08:00
1 parent 8227921c68
commit 694cb974fb
60 files changed
+4124 -93

No files matched your search

+7
View File
@@ -317,6 +317,13 @@ func (s *Service) ValidateRuntime() error {
return s.runtimeErr
}
func (s *Service) Close() error {
if s.coordinator == nil || s.coordinator.redis == nil {
return nil
}
return s.coordinator.redis.Close()
}
func (s *Service) AllowRequest(ctx context.Context, key string, limit int, window time.Duration) (bool, error) {
if s.coordinator == nil {
return false, errors.New("运行时协调器未初始化")