fix(api): fix an issue with schedule update

pull/2543/head
Anthony Lapenna 6 years ago
parent acc5218c16
commit f5ada3085e

@ -39,6 +39,7 @@ func (scheduler *JobScheduler) UpdateSystemJobSchedule(jobType portainer.JobType
if err != nil {
return err
}
continue
}
newCron.Schedule(entry.Schedule, entry.Job)
@ -72,6 +73,7 @@ func (scheduler *JobScheduler) UpdateJobSchedule(runner portainer.JobRunner) err
if err != nil {
return err
}
continue
}
newCron.Schedule(entry.Schedule, entry.Job)

Loading…
Cancel
Save