Export (0) Print
Expand All
Expand Minimize

JobState Enumeration

Defines the state of the job.


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

'Usage
Dim instance As JobState

[GuidAttribute("BEDCD0AF-C2E1-40DB-96A8-65478CE50C6C")] 
[FlagsAttribute] 
[ComVisibleAttribute(true)] 
public enum JobState
/** @attribute GuidAttribute("BEDCD0AF-C2E1-40DB-96A8-65478CE50C6C") */ 
/** @attribute FlagsAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public enum JobState
GuidAttribute("BEDCD0AF-C2E1-40DB-96A8-65478CE50C6C") 
FlagsAttribute 
ComVisibleAttribute(true) 
public enum JobState

Member nameDescription
AllA mask used to indicate all states. This enumeration member represents a value of 2047.
CanceledThe job was canceled (see IScheduler.CancelJob). If the caller provided the reason for canceling the job, then the ISchedulerJob.ErrorMessage property will contain the reason. This enumeration member represents a value of 512.
CancelingThe job is being canceled. This enumeration member represents a value of 1024.
ConfiguringThe job is being configured. The application called the CreateJob method to create the job but has not called the AddJob or SubmitJob method to add the job to the scheduler or submit the job to the scheduling queue. This enumeration member represents a value of 1.
ExternalValidationA submission filter is determining if the job can run. For details, see the SubmissionFilterProgram cluster parameter in the Remarks section of SetClusterParameter. This enumeration member represents a value of 8.
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, access the ErrorMessage property. This enumeration member represents a value of 256.
FinishedThe job successfully finished (all the tasks in the job finished successfully). This enumeration member represents a value of 128.
FinishingThe server is cleaning up the resources that were allocated to the job. This enumeration member represents a value of 64.
QueuedThe job passed validation and was added to the scheduling queue. This enumeration member represents a value of 16.
RunningThe job is running. This enumeration member represents a value of 32.
SubmittedThe job was submitted to the scheduling queue (see SubmitJob). This enumeration member represents a value of 2.
ValidatingThe server is determining if the job 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 ExternalValidation = 8
const Queued = 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:
© 2014 Microsoft