Package

edu.umass.cs.automan.core

scheduler

Permalink

package scheduler

Visibility
  1. Public
  2. All

Type Members

  1. case class BackendResult[T](answer: T, worker_id: String, accept_time: Date, submit_time: Date) extends Product with Serializable

    Permalink
  2. class Scheduler extends AnyRef

    Permalink

    Controls scheduling of tasks for a given question.

    Controls scheduling of tasks for a given question.

    Note on virtual ticks: 1. The user supplies mock answers, each with a delay_in_s parameter. 2. When the scheduler starts up, if a question comes with mock answers, the scheduler knows that it should use virtual ticks. 3. For each "tick group" (the set of answers with the same delay_in_s), the scheduler advances exactly one loop iteration. 4. When the scheduler calls backend operations, it forwards the current time, virtual or otherwise. The backend should only return answered thunks when the current time is after the time of the response.

  3. case class Task(task_id: UUID, question: Question, round: Int, timeout_in_s: Int, worker_timeout: Int, cost: BigDecimal, created_at: Date, state: SchedulerState.Value, from_memo: Boolean, worker_id: Option[String], answer: Option[A], state_changed_at: Date) extends Product with Serializable

    Permalink

Value Members

  1. object SchedulerState extends Enumeration

    Permalink

Ungrouped