Module Scheduler.Job

module Job: sig .. end
Job scheduler.


Jobs can only be added. Jobs are added by workers resolving new tasks (which then become pending). The job scheduler manages new jobs and check which ones are runnable. It also manage user cancellation.
include Scheduler.S
val peek : t -> Host.t -> Job.t option
peek t host picks a job if it is runnable on the given host configuration.
val peek_s : t -> Host.t -> Job.t Lwt.t
peek_s t host blocks until a job become runnable on the given host configuration.