Share via


ICluster::RequeueTask method

Queues the specified task again.

Syntax

HRESULT RequeueTask(
  [in] long jobId,
  [in] long taskId
);

Parameters

  • jobId [in]
    The job identifier. The ICluster::AddJob method returns this value. If you have an instance of the job that has already been added to the cluster, you can call the IJob::get_Id method to get the identifier.

  • taskId [in]
    The task identifier. The ITask::get_Id method returns this value.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, call the ICluster::get_ErrorMessage method.

Remarks

Typically, you call this method if the task failed, you fixed the cause of the failure, and you want to try running the task again.

If you call this method while the task is running, the task is canceled. You cannot call this method for a completed task.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ICluster

ICluster::RequeueJob

ICluster::RequeueTasks