goharbor/harbor · error
enqueue timestamp missing for scheduled job
Error message
enqueue timestamp missing for scheduled job
What it means
Validation guard in Status.Validate for scheduled jobs: a job marked KindScheduled must carry a non-zero RunAt enqueue timestamp, otherwise its schedule trigger time is unknown and it can never fire. Fires when a scheduled job's status is checked but its metadata lacks the scheduled run time.
Solutions
- Set Info.RunAt to a non-zero unix timestamp of the planned execution time before creating the scheduled job
- Use KindGeneric or KindPeriodic if the job is not intended to run at a specific time
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/jobservice/job/models.go:152 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16).
Data as JSON: /api/errors/cacfff28a6e8cce8.
Report an issue: GitHub.
Appendix: source
Thrown at src/jobservice/job/models.go:152
st.Info.JobKind != KindPeriodic &&
st.Info.JobKind != KindScheduled {
return errors.Errorf("job kind is not supported: %s", st.Info.JobKind)
}
status := Status(st.Info.Status)
if err := status.Validate(); err != nil {
return err
}
if st.Info.JobKind == KindPeriodic {
if utils.IsEmptyStr(st.Info.CronSpec) {
return errors.New("missing cron spec for periodic job")
}
}
if st.Info.JobKind == KindScheduled {
if st.Info.RunAt == 0 {
return errors.New("enqueue timestamp missing for scheduled job")
}
}
return nil
}
// Config job service config
type Config struct {
RedisPoolConfig *config.RedisPoolConfig `json:"redis_pool_config"`
}
View on GitHub (pinned to 7b2fd08cc5)