harbor/job/scheduler.go
2016-05-30 14:44:03 +08:00

9 lines
137 B
Go

package job
var jobQueue = make(chan int64)
// Schedule put a job id into job queue.
func Schedule(jobID int64) {
jobQueue <- jobID
}