mirror of
https://github.com/goharbor/harbor.git
synced 2024-08-20 02:52:49 +02: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)
|
|
}
|