Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a job.
Syntax
HRESULT CreateJob(
[out] IJob **pRetVal
);
Parameters
- pRetVal [out]
An IJob interface that represents the job.
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 initial state of the job is JobStatus_NotSubmitted. After creating the job, call the ICluster::AddJob method to add the job to the cluster. You can then call the ICluster::AddTask or ICluster::AddTasks method to add one or more tasks to the job. When the job is ready (you have added all the tasks and set all the job terms), call the ICluster::SubmitJob method to add the job to the scheduling queue.
To add and submit the job in one step, call the ICluster::QueueJob method. Before calling the QueueJob method, call the IJob::AddTask method to add tasks to the job.
Requirements
Product |
Compute Cluster Pack Client Utilities |
Type library |
Ccpapi.tlb |