diff --git a/pkg/service/scheduler/service.go b/pkg/service/scheduler/service.go index 1da8ba60cc..e572d9a319 100644 --- a/pkg/service/scheduler/service.go +++ b/pkg/service/scheduler/service.go @@ -286,7 +286,7 @@ func (s *Service) PutTask(ctx context.Context, t *Task) error { if t.Sched.Cron.IsZero() { run = true } - } else if t.Sched.StartDate.Before(now()) { + } else if t.Sched.StartDate.Before(now()) && t.Sched.Interval != 0 { return errors.New("start date of scheduled task cannot be in the past") }