Share via


ISchedulerJob::RequeueTask method

Queues a task again.

Syntax

HRESULT RequeueTask(
  [in] ITaskId *id
);

Parameters

  • id [in]
    An ITaskId interface that identifies the task.

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, access the ISchedulerJob::ErrorMessage property.

Remarks

Typically, you queue a task again if you were able to fix 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.

You can queue a task again only if the ISchedulerTask.IsRerunnable property is set to VARIANT_TRUE.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJob

ISchedulerJob::AddTask

ISchedulerJob::CancelTask

ISchedulerTask