harbor/job/scheduler.go

9 lines
137 B
Go
Raw Normal View History

2016-04-20 06:24:17 +00:00
package job
var jobQueue = make(chan int64)
2016-05-12 08:11:28 +00:00
// Schedule put a job id into job queue.
2016-05-10 11:38:50 +00:00
func Schedule(jobID int64) {
jobQueue <- jobID
2016-05-10 11:38:50 +00:00
}