Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion cmd/kgo-repeater/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"os/signal"
"runtime/pprof"
"strings"
"syscall"
"time"

log "github.com/sirupsen/logrus"
Expand Down Expand Up @@ -127,7 +128,7 @@ func main() {
}

c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)

var verifiers []*repeater.Worker

Expand Down Expand Up @@ -171,6 +172,12 @@ func main() {
log.Infof("Waiting for worker %d complete", i)
log.Infof("Verifier %d result: %s", i, result.String())
}

for i, v := range verifiers {
log.Infof("Shutting down worker %d...", i)
(*v).Shutdown()
log.Infof("Worker %d shutdown complete", i)
}
}

// Even if we're not in remote mode, start the HTTP listener so
Expand Down