feat: 代理异常暂停与自动重连恢复

Proxy failure pause, timed reconnect, and guarded auto-resume.
This commit is contained in:
RuoJi6 committed 2026-10-31 15:54:41 +08:00
1 parent 0ed68d9143
commit de6a0fa125
16 files changed
+541 -59

No files matched your search

+6 -1
View File
@@ -101,7 +101,12 @@ func (s *Server) beginTaskDelete(taskID string) bool {
if s.engine.IsDeleting(taskID) {
return false
}
return s.engine.BeginDelete(taskID)
ok := s.engine.BeginDelete(taskID)
if ok {
// A user delete/archive action is an explicit override of proxy recovery.
_ = s.m.ClearPauseReason(taskID)
}
return ok
}
// abortTaskDelete restores the execution barrier from the committed task row,