mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-12 05:58:23 +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)
|
||
|
}
|