Export (0) Print
Expand All

TaskStatus Enumeration

Defines the task status constants.


Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)

[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[GuidAttribute("343577AE-8168-4f66-B3F1-F88760297355")] 
public enum TaskStatus
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute GuidAttribute("343577AE-8168-4f66-B3F1-F88760297355") */ 
public enum TaskStatus
SerializableAttribute 
ComVisibleAttribute(true) 
GuidAttribute("343577AE-8168-4f66-B3F1-F88760297355") 
public enum TaskStatus

Member nameDescription
CancelledThe task was canceled by the application. The application called the ICluster.CancelTask or ICluster.CancelTasks method to cancel the task. If the caller provided the reason for canceling the job, then the ITask.ErrorMessage method will contain that reason. This enumeration member represents a value of 5.
FailedThe task failed due to an application error or a system error that occurred on the compute node. To get a description of the error, call the ITask.ErrorMessage method. This enumeration member represents a value of 4.
FinishedThe task successfully finished. This enumeration member represents a value of 3.
NotSubmittedThe parent job was added to the cluster but not to the scheduling queue. This enumeration member represents a value of 0.
QueuedThe parent job was added to the scheduling queue. This enumeration member represents a value of 1.
RunningThe task is running. This enumeration member represents a value of 2.

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 NotSubmitted = 0
const Queued = 1
const Running = 2
const Finished = 3
const Failed = 4
const Cancelled = 5

Development Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP

Target Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities

Community Additions

ADD
Show:
© 2015 Microsoft