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 finishREADY
: the task is ready to submitINITIATED
: the task has been sent to task actor, but not yet runningREQUESTING_RESOURCES
: the task is requesting resourcesRUNNING
: the task is currently runningFINISHING
: the task is finishing up, but not yet completed/errored/cancelledERROR
: the task encountered some errors during executionCOMPLETED
: the task is completedCANCELLED
: 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#