Share via


Cluster.RequeueJob Method

Queues the specified job again.

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

Usage

Syntax

'Declaration
Public Sub RequeueJob ( _
    jobId As Integer _
)
public void RequeueJob (
    int jobId
)
public:
virtual void RequeueJob (
    int jobId
) sealed
public final void RequeueJob (
    int jobId
)
public final function RequeueJob (
    jobId : int
)

Parameters

  • jobId
    The job identifier. The Cluster.AddJob method returns this value. If you have a job object that has already been added to the cluster, you can access the Job.Id property to get the identifier.

Remarks

Typically, you call this method if tasks in the job have failed, you fixed the cause of the failure, and you want to try running the tasks again. Note that to restart a job, all tasks in the job must have the ITask.IsRerunnable property set to true. Canceled tasks are not rerun; only failed tasks are rerun. To rerun canceled tasks, you must call the Cluster.RequeueTask method.

If you call this method while tasks are running, the tasks are canceled. You cannot call this method for a completed job.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

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

See Also

Reference

Cluster Class
Cluster Members
Microsoft.ComputeCluster Namespace
RequeueJobs
RequeueTask