Skip to content

Commit

Permalink
fix: reset scheduler before running tick work
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction committed Sep 22, 2024
1 parent adf4462 commit 9fc311a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ical-git/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ func tick(ctx context.Context, cancel context.CancelFunc, conf config.Config, sc
return
case <-ticker.C:
slog.Info("🔧 starting new tick work")
slog.Info("🔧 Reset scheduler")
sc.StopTimers()
err = run(conf, sc)
slog.Info("🔧 ending tick work")
if err != nil {
Expand Down

0 comments on commit 9fc311a

Please sign in to comment.