diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 624bbcc..ea9a0b2 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -2,6 +2,8 @@ package cmd import ( "context" + "net/http" + _ "net/http/pprof" "os" "runtime" "runtime/pprof" @@ -67,6 +69,10 @@ func Execute(ctx context.Context) int { rootCmd.AddCommand(SchedulerCmd(ctx)) rootCmd.AddCommand(WorkerCmd(ctx)) + go func() { + _ = http.ListenAndServe("localhost:6060", nil) + }() + if err := rootCmd.Execute(); err != nil { return 1 }