TaskState Enumeration
Defines the state of the task.
Namespace: Microsoft.Hpc.Scheduler.Properties
Assembly: Microsoft.Hpc.Scheduler.Properties (in Microsoft.Hpc.Scheduler.Properties.dll)
Namespace: Microsoft.Hpc.Scheduler.Properties
Assembly: Microsoft.Hpc.Scheduler.Properties (in Microsoft.Hpc.Scheduler.Properties.dll)
[FlagsAttribute] [GuidAttribute("A78267A1-029C-4B05-8317-20576D4B782E")] [ComVisibleAttribute(true)] public enum TaskState
/** @attribute FlagsAttribute() */
/** @attribute GuidAttribute("A78267A1-029C-4B05-8317-20576D4B782E") */
/** @attribute ComVisibleAttribute(true) */
public enum TaskState
FlagsAttribute GuidAttribute("A78267A1-029C-4B05-8317-20576D4B782E") ComVisibleAttribute(true) public enum TaskState
| Member name | Description |
|---|---|
| All | A mask used to indicate all states. This enumeration member represents a value of 2047. |
| Canceled | The task was canceled (see ISchedulerJob.CancelTask(ITaskId)). If the caller provided the reason for canceling the task, then the ISchedulerTask.ErrorMessage property will contain the reason. This enumeration member represents a value of 512. |
| Canceling | The task is in the process of being canceled. This enumeration member represents a value of 1024. |
| 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. This enumeration member represents a value of 1. |
| Dispatching | The scheduler is in the process of sending the task to the node to run. This enumeration member represents a value of 16. |
| 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 property. This enumeration member represents a value of 256. |
| Finished | The task successfully finished. This enumeration member represents a value of 128. |
| Finishing | The node is cleaning up the resources that were allocated to the task. This enumeration member represents a value of 64. |
| NA |
This enumeration supports the infrastructure and is not intended to be used directly from your code.
|
| Queued | The task was added to the scheduling queue. This enumeration member represents a value of 8. |
| Running | The task is running. This enumeration member represents a value of 32. |
| Submitted | The task was added to the scheduling queue. This enumeration member represents a value of 2. |
| Validating | The scheduler is determining if the task is correctly configured and can run. This enumeration member represents a value of 4. |
To use this enumeration in Visual Basic Scripting Edition (VBScript), you need to use the numeric values for the enumeration members or create constants that correspond to those members and set them equal to the numeric values. The following code example shows how to create and set constants for this enumeration in VBScript.
const Configuring = 1 const Submitted = 2 const Validating = 4 const Queued = 8 const Dispatching = 16 const Running = 32 const Finishing = 64 const Finished = 128 const Failed = 256 const Canceled = 512 const Canceling = 1024 const All = 2047
Development Platforms
Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012Target Platforms
Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities
Build Date:
Community Additions
ADD
Show: