Skip to content

Commit

Permalink
fix: Fixes scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
salehkhazaei committed Jun 30, 2024
1 parent 4f581ee commit b34bf63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/scheduler/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ func (s *Service) Start(ctx context.Context) error {

c := cron.New()

c.AddFunc("0 30 1 * * *", func() { go s.Trigger() })
_, err := c.AddFunc("0 30 1 * * *", func() { go s.Trigger() })
if err != nil {
return err
}

c.Start()

Expand Down

0 comments on commit b34bf63

Please sign in to comment.