alab_management.task_view.task_enums module#

class CancelingProgress(value)[source]#

Bases: Enum

The status for a request that is being canceled. It is kept in the canceling field of the request.

PENDING: The canceling process has been initiated. WORKER_NOTIFIED: The worker has been notified to cancel the request, which means an

abort error has been raised in the worker.

PENDING = 1#
WORKER_NOTIFIED = 2#
class TaskPriority(value)[source]#

Bases: IntEnum

The priority of a task. larger integer = higher priority.

Values >= 100 are reserved for urgent/error correcting resource requests.

HIGH = 30#
LOW = 10#
NORMAL = 20#
SYSTEM = 900#
URGENT = 100#
class TaskStatus(value)[source]#

Bases: Enum

The status of one task.

  • WAITING: the task cannot start yet, waiting for preceding tasks to finish

  • READY: the task is ready to submit

  • INITIATED: the task has been sent to task actor, but not yet running

  • REQUESTING_RESOURCES: the task is requesting resources

  • RUNNING: the task is currently running

  • FINISHING: the task is finishing up, but not yet completed/errored/cancelled

  • ERROR: the task encountered some errors during execution

  • COMPLETED: the task is completed

  • CANCELLED: the task has been cancelled and stopped.

CANCELLED = 9#
COMPLETED = 8#
ERROR = 7#
FINISHING = 6#
INITIATED = 3#
READY = 2#
REQUESTING_RESOURCES = 4#
RUNNING = 5#
WAITING = 1#