TaskState Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the state of the task.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("A78267A1-029C-4B05-8317-20576D4B782E")]
public enum TaskState
type TaskState =
Public Enum TaskState
- Inheritance
-
TaskState
- Attributes
Fields
All | 2047 | A mask used to indicate all states. This enumeration member represents a value of 2047. |
Canceled | 512 | The task was canceled (see CancelTask(ITaskId)). If the caller provided the reason for canceling the task, then the ErrorMessage property will contain the reason. This enumeration member represents a value of 512. |
Canceling | 1024 | The task is in the process of being canceled. This enumeration member represents a value of 1024. |
Configuring | 1 | The task is being configured. The application called the CreateTask() method to create the task but has not called the AddTask(ISchedulerTask) or SubmitTask(ISchedulerTask) method to add the task to the job. This enumeration member represents a value of 1. |
Dispatching | 16 | The scheduler is in the process of sending the task to the node to run. This enumeration member represents a value of 16. |
Failed | 256 | The task failed, the job was canceled, or a system error occurred on the compute node. To get a description of the error, access the ErrorMessage property. This enumeration member represents a value of 256. |
Finished | 128 | The task successfully finished. This enumeration member represents a value of 128. |
Finishing | 64 | The node is cleaning up the resources that were allocated to the task. This enumeration member represents a value of 64. |
NA | 0 | The state is not set. This enumeration member represents a value of 0. |
Queued | 8 | The task was added to the scheduling queue. This enumeration member represents a value of 8. |
Running | 32 | The task is running. This enumeration member represents a value of 32. |
Submitted | 2 | The task was added to the scheduling queue. This enumeration member represents a value of 2. |
Validating | 4 | The scheduler is determining if the task is correctly configured and can run. This enumeration member represents a value of 4. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for