JobStatus Enumeration

Defines the job status constants.


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

[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[GuidAttribute("4DB2A200-F06F-4a3d-B165-ACFE4AA16BC2")] 
public enum JobStatus
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute GuidAttribute("4DB2A200-F06F-4a3d-B165-ACFE4AA16BC2") */ 
public enum JobStatus
SerializableAttribute 
ComVisibleAttribute(true) 
GuidAttribute("4DB2A200-F06F-4a3d-B165-ACFE4AA16BC2") 
public enum JobStatus

Member nameDescription
CancelledThe job was canceled by the application. The application called the ICluster.CancelJob or ICluster.CancelJobs method to cancel the job. If the caller provided the reason for canceling the job, then the IJob.ErrorMessage method will contain that reason. This enumeration member represents a value of 5.
FailedOne or more of the tasks in the job failed or a system error occurred on the compute node. To get a description of the error, call the IJob.ErrorMessage method. This enumeration member represents a value of 4.
FinishedThe job successfully finished (all the tasks in the job finished successfully). This enumeration member represents a value of 3.
NotSubmittedThe job was added to the cluster but not to the scheduling queue. The application called the ICluster.AddJob or ICluster.AddJobs method to add the job to the cluster. This enumeration member represents a value of 0.
QueuedThe job was added to the scheduling queue. The application called the ICluster.SubmitJob, ICluster.SubmitJobs, ICluster.QueueJob, or ICluster.QueueJobs method to add the job to the scheduling queue. This enumeration member represents a value of 1.
RunningThe job 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: