Enum Class TaskState

java.lang.Object
java.lang.Enum<TaskState>
io.trino.execution.TaskState
All Implemented Interfaces:
Serializable, Comparable<TaskState>, Constable

public enum TaskState extends Enum<TaskState>
  • Enum Constant Details

    • PLANNED

      public static final TaskState PLANNED
      Task is planned but has not been scheduled yet. A task will be in the planned state until, the dependencies of the task have begun producing output.
    • RUNNING

      public static final TaskState RUNNING
      Task is running.
    • FLUSHING

      public static final TaskState FLUSHING
      Task has finished executing and output is left to be consumed. In this state, there will be no new drivers, the existing drivers have finished and the output buffer of the task is at-least in a 'no-more-pages' state.
    • FINISHED

      public static final TaskState FINISHED
      Task has finished executing and all output has been consumed.
    • CANCELING

      public static final TaskState CANCELING
      Task was canceled, but not all drivers have finishing exiting
    • CANCELED

      public static final TaskState CANCELED
      Task was canceled by a user.
    • ABORTING

      public static final TaskState ABORTING
      Task was told to abort, but not all drivers have finishing exiting
    • ABORTED

      public static final TaskState ABORTED
      Task was aborted due to a failure in the query. The failure was not in this task.
    • FAILING

      public static final TaskState FAILING
      Task has been marked as failed, but not all drivers have finishing exiting
    • FAILED

      public static final TaskState FAILED
      Task execution failed.
  • Field Details

    • TERMINAL_TASK_STATES

      public static final Set<TaskState> TERMINAL_TASK_STATES
  • Method Details

    • values

      public static TaskState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TaskState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isDone

      public boolean isDone()
      Is this a terminal state.
    • isTerminating

      public boolean isTerminating()
    • isTerminatingOrDone

      public boolean isTerminatingOrDone()