mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-06 21:11:50 +08:00
fix: 收紧代理故障判定并修复自动恢复门控/日历/终态问题
This commit is contained in:
1 parent
de6a0fa125
commit
e878020c4d
15 files changed
+437
-26
No files matched your search
@@ -150,7 +150,11 @@ func (s *Server) applyTaskControlWithCause(t *Task, action string, pauseCause er
|
||||
reason = "paused_by_proxy"
|
||||
}
|
||||
if err := s.m.ApplyTaskPauseOriginReason(t.ID, reason, pauseCause == agent.AbortPausedBySchedule); err != nil {
|
||||
if !wasEnginePaused && !wasQueued {
|
||||
// Do not compensate over a proxy pause that may have committed while
|
||||
// this control request was failing. The persisted reason is the source
|
||||
// of truth for which Engine barrier must remain installed.
|
||||
stillProxyPaused := t.lifecycleSnapshot().PauseReason == "paused_by_proxy"
|
||||
if !stillProxyPaused && !wasEnginePaused && !wasQueued {
|
||||
s.engine.Resume(t)
|
||||
}
|
||||
return out, err
|
||||
|
||||
Reference in new issue
Block a user