TaskState Enum

Definition

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