JobState Enumeration
Defines the state of the job.
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)
[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 name | Description |
|---|---|
| All | A mask used to indicate all states. This enumeration member represents a value of 2047. |
| Canceled | The 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. |
| Canceling | The job is being canceled. This enumeration member represents a value of 1024. |
| Configuring | The 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. |
| ExternalValidation | A 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. |
| Failed | One 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. |
| Finished | The job successfully finished (all the tasks in the job finished successfully). This enumeration member represents a value of 128. |
| Finishing | The server is cleaning up the resources that were allocated to the job. This enumeration member represents a value of 64. |
| Queued | The job passed validation and was added to the scheduling queue. This enumeration member represents a value of 16. |
| Running | The job is running. This enumeration member represents a value of 32. |
| Submitted | The job was submitted to the scheduling queue (see SubmitJob). This enumeration member represents a value of 2. |
| Validating | The 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 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: