{"record":{"id":"fc8c7cb80a399f7e","repo":"goharbor/harbor","slug":"10003","errorCode":"10003","errorMessage":"'cron_spec' must be specified for the %s job","messagePattern":"'cron_spec' must be specified for the (.+?) job","errorType":"http","errorClass":"errs.baseError","httpStatus":500,"severity":"error","filePath":"src/jobservice/core/controller.go","lineNumber":201,"sourceCode":"\tif req.Job.Metadata.JobKind != job.KindGeneric &&\n\t\treq.Job.Metadata.JobKind != job.KindPeriodic &&\n\t\treq.Job.Metadata.JobKind != job.KindScheduled {\n\t\treturn errors.Errorf(\n\t\t\t\"job kind '%s' is not supported, only support '%s','%s','%s'\",\n\t\t\treq.Job.Metadata.JobKind,\n\t\t\tjob.KindGeneric,\n\t\t\tjob.KindScheduled,\n\t\t\tjob.KindPeriodic)\n\t}\n\n\tif req.Job.Metadata.JobKind == job.KindScheduled &&\n\t\treq.Job.Metadata.ScheduleDelay == 0 {\n\t\treturn errors.Errorf(\"'schedule_delay' must be specified for %s job\", job.KindScheduled)\n\t}\n\n\tif req.Job.Metadata.JobKind == job.KindPeriodic {\n\t\tif utils.IsEmptyStr(req.Job.Metadata.Cron) {\n\t\t\treturn fmt.Errorf(\"'cron_spec' must be specified for the %s job\", job.KindPeriodic)\n\t\t}\n\t\tif _, err := comUtils.CronParser().Parse(req.Job.Metadata.Cron); err != nil {\n\t\t\treturn fmt.Errorf(\"'cron_spec' is not correctly set: %s: %s\", req.Job.Metadata.Cron, err)\n\t\t}\n\t}\n\n\treturn nil\n}\n","sourceCodeStart":183,"sourceCodeEnd":210,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/jobservice/core/controller.go#L183-L210","documentation":"Error \"'cron_spec' must be specified for the %s job\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/jobservice/core/controller.go:201 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}