harbor/job/scheduler.go
2016-04-20 14:24:17 +08:00

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)
}