Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
evlekht committed Dec 3, 2024
1 parent cc10514 commit 2df30bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ func (s *scheduler) Stop() error {
return nil
}

// Schedule schedules a job to be executed every period. If jobID is empty, a new job is created.
// Otherwise, the existing job period is updated and expiration time is set to min(current expiration time, now + period).
// Schedules a job to be executed every period.
// If there is already scheduled job with the same name, then its period is updated.
func (s *scheduler) Schedule(ctx context.Context, period time.Duration, jobName string) error {
session, err := s.storage.NewSession(ctx)
if err != nil {
Expand Down

0 comments on commit 2df30bd

Please sign in to comment.