harbor/job/scheduler.go

9 lines
137 B
Go
Raw Normal View History

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