Class FairScheduler

java.lang.Object
io.trino.execution.executor.scheduler.FairScheduler
All Implemented Interfaces:
AutoCloseable

@ThreadSafe public final class FairScheduler extends Object implements AutoCloseable

Implementation nodes

  • The TaskControl state machine is only modified by the task executor thread (i.e., from within runTask(Schedulable, TaskControl) )}). Other threads can indirectly affect what the task executor thread does by marking the task as ready or cancelled and unblocking the task executor thread, which will then act on that information.