Select Git revision
scheduler.go
-
Andreas Schärtl authored
- Name interfaces in the canonical Golang way. - Skip the complicated logging madness for now. I do want dedicated logging for each job, but not right now...
Andreas Schärtl authored- Name interfaces in the canonical Golang way. - Skip the complicated logging madness for now. I do want dedicated logging for each job, but not right now...
scheduler.go 459 B
package core
type Scheduler interface {
// Submit job for execution with this scheduler. Only returns
// an error when enqueuing failed. On success, returns a unique
// id for use with other methods of this scheduler.
Submit(job Collecter) (JobId, error)
// Return a JobInfo for the job with given id.
Info(id JobId) (JobInfo, error)
// Wait for completion of job with given id. Returns an error
// if the id is unknown.
WaitFor(id JobId) error
}