TaskState Enum
- java.
lang. Object - java.
lang. Enum<TaskState> - com.
microsoft. azure. batch. protocol. models. TaskState
- com.
- java.
public enum TaskState
Defines values for TaskState.
Fields
ACTIVE |
The task is queued and able to run, but is not currently assigned to a compute node. A task enters this state when it is created, when it is enabled after being disabled, or when it is awaiting a retry after a failed run. |
COMPLETED |
The task is no longer eligible to run, usually because the task has finished successfully, or the task has finished unsuccessfully and has exhausted its retry limit. A task is also marked as completed if an error occurred launching the task, or when the task has been terminated. |
PREPARING |
The task has been assigned to a compute node, but is waiting for a required Job Preparation task to complete on the node. If the Job Preparation task succeeds, the task will move to running. If the Job Preparation task fails, the task will return to active and will be eligible to be assigned to a different node. |
RUNNING |
The task is running on a compute node. This includes task-level preparation such as downloading resource files or deploying application packages specified on the task - it does not necessarily mean that the task command line has started executing. |
Methods
Applies to
Azure SDK for Java