Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

TaskState Enumeration

Defines the state of the task.


Namespace: Microsoft.Hpc.Scheduler.Properties
Assembly: Microsoft.Hpc.Scheduler.Properties (in Microsoft.Hpc.Scheduler.Properties.dll)

'Usage
Dim instance As TaskState

[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 nameDescription
AllA mask used to indicate all states. This enumeration member represents a value of 2047.
CanceledThe 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.
CancelingThe task is in the process of being canceled. This enumeration member represents a value of 1024.
ConfiguringThe 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.
DispatchingThe scheduler is in the process of sending the task to the node to run. This enumeration member represents a value of 16.
FailedThe 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.
FinishedThe task successfully finished. This enumeration member represents a value of 128.
FinishingThe 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.

QueuedThe task was added to the scheduling queue. This enumeration member represents a value of 8.
RunningThe task is running. This enumeration member represents a value of 32.
SubmittedThe task was added to the scheduling queue. This enumeration member represents a value of 2.
ValidatingThe 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 2012

Target 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:

2013-04-22

Community Additions

ADD
Show:
© 2015 Microsoft