mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 07:37:38 +01:00
13 lines
248 B
Go
13 lines
248 B
Go
package job
|
|
|
|
import (
|
|
"github.com/vmware/harbor/models"
|
|
"github.com/vmware/harbor/utils/log"
|
|
)
|
|
|
|
func Schedule(job models.JobEntry) {
|
|
log.Infof("job: %d will be scheduled", job.ID)
|
|
//TODO: add support for cron string when needed.
|
|
go run(job)
|
|
}
|