Disabled orborus stats by default

This commit is contained in:
Frikky
2024-01-17 10:52:59 +01:00
parent 8a48dee950
commit 09ab560dd5
+7 -2
View File
@@ -308,8 +308,13 @@ func handleGetWorkflowqueue(resp http.ResponseWriter, request *http.Request) {
environment = env.OrgId environment = env.OrgId
} }
if request.Method == "POST" { // FIXME: Workflow stats disabled for now
if rand.Intn(1) == 0 { // as it caused too many problems
// goal: track docker stuff once a minute and graph it
// For now: Disable this as it caused too many problems
if request.Method == "POST" && true == false {
//log.Printf("[DEBUG] POST to workflowqueue")
if rand.Intn(10) == 0 {
// Parse out body // Parse out body
body, err := ioutil.ReadAll(request.Body) body, err := ioutil.ReadAll(request.Body)
if err == nil { if err == nil {