Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug handler #984

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions handlers/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/livepeer/catalyst-api/pipeline"
)

// TODO add back in
// DebugEndpointListenAndServe provides a handler to allow us to check internal state of the app for debugging
func DebugEndpointListenAndServe(port int, vodEngine *pipeline.Coordinator) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iameli this is no longer enabled but we used to have this endpoint to be able to get a snapshot of the current jobs on the app. Previously I just gave it a new port, but do you think it would be safer and more sensible to add the handlers onto the existing internal port 7979?

if vodEngine == nil {
Expand Down