TaskState enumeration

Defines the state of the task.

Syntax


typedef enum  { 
  TaskState_Configuring  = 1,
  TaskState_Submitted    = 2,
  TaskState_Validating   = 4,
  TaskState_Queued       = 8,
  TaskState_Dispatching  = 16,
  TaskState_Running      = 32,
  TaskState_Finishing    = 64,
  TaskState_Finished     = 128,
  TaskState_Failed       = 256,
  TaskState_Canceled     = 512,
  TaskState_Canceling    = 1024,
  TaskState_All          = 2047
} TaskState;

Constants

TaskState_Configuring

The task is being configured. The application called the ISchedulerJob::CreateTask method to create the task but has not called the ISchedulerJob::AddTask or ISchedulerJob::SubmitTask method to add the task to the job.

TaskState_Submitted

The task was added to the scheduling queue.

TaskState_Validating

The scheduler is determining if the task is correctly configured and can run.

TaskState_Queued

The task passed validation and was added to the scheduling queue.

TaskState_Dispatching

The scheduler is in the process of sending the task to the node to run.

TaskState_Running

The task is running.

TaskState_Finishing

The node is cleaning up the resources that were allocated to the task.

TaskState_Finished

The task successfully finished.

TaskState_Failed

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 task property.

TaskState_Canceled

The task was canceled (see ISchedulerJob::CancelTask). If the caller provided the reason for canceling the task, then the ErrorMessage task property will contain the reason.

TaskState_Canceling

The task is in the process of being canceled.

TaskState_All

A mask used to indicate all states.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.Properties.tlb

See also

HPC Enumerations
ISchedulerTask.State

 

 

Show: