Skip to content

Commit

Permalink
Remove monitoring endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw committed Jan 26, 2024
1 parent 833ec2a commit 0499d84
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 136 deletions.
2 changes: 0 additions & 2 deletions HadesAPI/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
)

var AsynqClient *asynq.Client
var MonitorClient *MonitoringClient

type HadesAPIConfig struct {
APIPort uint `env:"API_PORT,notEmpty" envDefault:"8080"`
Expand Down Expand Up @@ -40,7 +39,6 @@ func main() {
r := gin.Default()
r.GET("/ping", ping)
r.POST("/build", AddBuildToQueue)
r.GET("/monitoring", MonitoringQueue)

log.Panic(r.Run(fmt.Sprintf(":%d", cfg.APIPort)))
}
129 changes: 0 additions & 129 deletions HadesAPI/queue_monitoring.go

This file was deleted.

5 changes: 0 additions & 5 deletions HadesAPI/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,3 @@ func AddBuildToQueue(c *gin.Context) {
}
log.Printf(" [*] Successfully enqueued task: %+v", info.ID)
}

func MonitoringQueue(c *gin.Context) {
state := MonitorClient.GetQueueState()
c.JSON(http.StatusOK, state)
}

0 comments on commit 0499d84

Please sign in to comment.