Adds the specified job to the cluster.
- Job [in]
An IJob interface that identifies the job to add to the cluster.
- pRetVal [out]
Note that identifiers for jobs that are no longer in the cluster are reused.
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.
To get an IJob interface pointer, call the ICluster::CreateJob method. You can also call the ICluster::GetJob method or one of the list methods to get an existing job to use as a template for adding similar jobs (or the same job) to the cluster.
If the job contains tasks, call the ICluster::SubmitJob method to add the job to the scheduling queue. If the job does not contain tasks, call the ICluster::AddTask method to add a task to the job before calling the SubmitJob method.
Note that you can call the SubmitJob method on a job that does not contain tasks to reserve resources for the job. If the IJob::put_RunUntilCanceled method's pRetVal parameter is VARIANT_TRUE, the job is scheduled and runs indefinitely or until it exceeds the run-time limit set in the IJob::put_Runtime method (then the job is canceled). If the put_RunUntilCanceled method's pRetVal parameter is VARIANT_FALSE, the job moves to the finished status.
|Compute Cluster Pack Client Utilities|