Share via


ICluster::AddTask method

Adds the specified task to the specified job.

Syntax

HRESULT AddTask(
  [in]  long  jobId,
  [in]  ITask *Task,
  [out] long  *pRetVal
);

Parameters

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

The number of tasks that you can add to a job is limited by the size of an integer.

The task cannot be modified after it is added to the job.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ICluster

ICluster::AddTasks

ICluster::CancelTask

ICluster::ListTasks

IJob::AddTask