Add --monitor: live status view (downstream health, GPU lock, queue) via the control channel
This commit is contained in:
@@ -491,6 +491,7 @@ func (s *Server) OllamaHandler() http.Handler {
|
||||
return
|
||||
}
|
||||
defer s.cfg.Lock.ReleaseLLM()
|
||||
s.cfg.Lock.SetDetail("ollama: " + r.Method + " " + r.URL.Path)
|
||||
s.ollamaProxy.ServeHTTP(w, r)
|
||||
}))
|
||||
}
|
||||
@@ -590,6 +591,7 @@ func (s *Server) handlePrompt(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
s.cfg.Metrics.ObserveLockWait("image", time.Since(start).Seconds())
|
||||
log.Info("image lock acquired")
|
||||
s.cfg.Lock.SetDetail("comfy: POST /prompt")
|
||||
|
||||
if s.cfg.ComfySup != nil && !comfyFirst {
|
||||
if err := s.cfg.ComfySup.EnsureRunning(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user