Assembly: Microsoft.Hpc.Scheduler.Properties (in Microsoft.Hpc.Scheduler.Properties.dll)
[ComVisibleAttribute(true)] [GuidAttribute("E0165E48-568A-43bd-BE2D-C2FE864F2C67")] public enum TaskType
/** @attribute ComVisibleAttribute(true) */ /** @attribute GuidAttribute("E0165E48-568A-43bd-BE2D-C2FE864F2C67") */ public enum TaskType
|Basic||Runs a single instance of a serial application or a Message Passing Interface (MPI) application. An MPI application typically runs concurrently on multiple cores and can span multiple nodes. This task type is the default. This enumeration member represents a value of 0.|
|NodePrep||Runs a command or script on each compute node as it is allocated to the job. The Node Prep task runs on a node before any other task in the job. If the Node Prep task fails to run on a node, then that node is not added to the job. This enumeration member represents a value of 2.|
|NodeRelease||Runs a command or script on compute each node as it is released from the job. Node Release tasks run when the job is canceled by the user or by graceful preemption. Node Release tasks do not run when the job is canceled by immediate preemption. This enumeration member represents a value of 3.|
|ParametricSweep||Runs a command a specified number of times as indicated by the start, end, and increment values, generally across indexed input and output files. The steps of the sweep may or may not run in parallel, depending on the resources that are available on the HPC cluster when the task is running. This enumeration member represents a value of 1.|
|Service||Runs a command or service on all resources that are assigned to the job. New instances of the command are started when new resources are added to the job, or if a previously running instance exits and the resource that the previously running instance was running on is still allocated to the job. A service task continues to start new instances until the task is canceled, the maximum run time expires, or the maximum number of instances is reached. A service task can create up to 1,000,000 sub-tasks. Tasks that you submit through a Service Oriented Architecture (SOA) client run as service tasks. You cannot add a basic task or a parametric sweep task to a job that contains a service task. This enumeration member represents a value of 4.|
You cannot add a basic task or a parametric sweep task to a job that contains a service task.
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 Basic = 0 const NodePrep = 2 const NodeRelease = 3 const ParametricSweep = 1 const Service = 4
Platform Note: This enumeration is only supported for Windows HPC Server 2008 R2.
Development PlatformsWindows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012
Target PlatformsWindows 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