summaryrefslogtreecommitdiff
path: root/internal/api/executions.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-04-03 08:39:32 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-04-03 08:39:32 +0000
commit5aa6a15ffdf68a8dbe12eb0fdfff93deafb9da10 (patch)
tree31c6a3617b2bb10814dca4b9db5a5a46ce2ba3c5 /internal/api/executions.go
parent2461fcf03ed2a49c7ac4aaed77fdde1aa01177c4 (diff)
fix: remove drain-lock circuit breaker that halted all executions after 3 consecutive failures
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/api/executions.go')
-rw-r--r--internal/api/executions.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/api/executions.go b/internal/api/executions.go
index d39de9f..4d8ba9c 100644
--- a/internal/api/executions.go
+++ b/internal/api/executions.go
@@ -128,14 +128,6 @@ func (s *Server) handleGetAgentStatus(w http.ResponseWriter, r *http.Request) {
})
}
-// handleUndrainAgent resets the drain state and failure counter for the given agent type.
-// POST /api/pool/agents/{agent}/undrain
-func (s *Server) handleUndrainAgent(w http.ResponseWriter, r *http.Request) {
- agent := r.PathValue("agent")
- s.pool.UndrainingAgent(agent)
- w.WriteHeader(http.StatusOK)
-}
-
// tailLogFile reads the last n lines from the file at path.
func tailLogFile(path string, n int) (string, error) {
data, err := os.ReadFile(path)