Add multiple times in periodic jobs (#17858)

This commit is contained in:
Андрей Неустроев
2023-08-22 22:42:31 +03:00
committed by GitHub
parent 7548eecbaa
commit 3e61b3a37d
15 changed files with 495 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ func normalizeJob(jc *jobConfig) {
j.ID = &jc.JobID
}
if j.Periodic != nil && j.Periodic.Spec != nil {
if j.Periodic != nil && (j.Periodic.Spec != nil || j.Periodic.Specs != nil) {
v := "cron"
j.Periodic.SpecType = &v
}