tweak: 引擎停滞判定阈值 60s → 120s
stalled 判据(在跑、无在执行意图、planner/worker 静默)的静默时长从 60 秒放宽到 120 秒。
This commit is contained in:
1 parent
82c6d4a06b
commit
c69534e09b
1 file changed
+1
-1
+1
-1
@@ -802,7 +802,7 @@ func (s *Server) stats(w http.ResponseWriter, r *http.Request) {
|
|||||||
paused := s.engine.IsPaused(t.ID)
|
paused := s.engine.IsPaused(t.ID)
|
||||||
running := s.engine.Ready() && s.engine.Started(t.ID) && !paused
|
running := s.engine.Ready() && s.engine.Started(t.ID) && !paused
|
||||||
// stalled: running but no activity for a while and nothing in flight.
|
// stalled: running but no activity for a while and nothing in flight.
|
||||||
stalled := running && inFlight == 0 && last > 0 && time.Now().Unix()-last > 60
|
stalled := running && inFlight == 0 && last > 0 && time.Now().Unix()-last > 120
|
||||||
|
|
||||||
// engine_mode follows the spec enum (exploring|paused|stalled|idle).
|
// engine_mode follows the spec enum (exploring|paused|stalled|idle).
|
||||||
switch {
|
switch {
|
||||||
|
|||||||
Reference in new issue
Block a user