Skip to content

Commit

Permalink
fix: Actually do the scheduled run groups (:
Browse files Browse the repository at this point in the history
Tested on K8s properly now.

Signed-off-by: bwplotka <[email protected]>
  • Loading branch information
bwplotka committed Sep 20, 2024
1 parent 55ea55a commit 999cd03
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/avalanche.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func main() {
if err := cfg.Validate(); err != nil {
kingpin.FatalUsage("configuration error: %v", err)
}
log.Println("initializing avalanche...")

collector := metrics.NewCollector(*cfg)
reg := prometheus.NewRegistry()
Expand Down Expand Up @@ -169,4 +170,11 @@ func main() {
}, func(_ error) {
_ = httpSrv.Shutdown(context.Background())
})

log.Println("starting avalanche...")
if err := g.Run(); err != nil {
//nolint:errcheck
log.Fatalf("running avalanche failed %v", err)
}
log.Println("avalanche finished")
}

0 comments on commit 999cd03

Please sign in to comment.