feat(orchestrator): thread run trigger; breaker on scheduled runs with errors
This commit is contained in:
@@ -69,7 +69,7 @@ func (s *Server) handleRun(w http.ResponseWriter, r *http.Request) {
|
||||
http.Error(w, "bad id", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
runID, err := s.orch.Run(r.Context(), taskID)
|
||||
runID, err := s.orch.Run(r.Context(), taskID, "manual")
|
||||
if errors.Is(err, orchestrator.ErrNotTested) {
|
||||
http.Error(w, "accounts must pass connection tests first", http.StatusConflict)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user