IScheduler::AddJob method

Adds the specified job to the cluster.

Syntax

HRESULT AddJob(
  [in] ISchedulerJob *job
);

Parameters

  • job [in]
    An ISchedulerJob interface of the job to add to the cluster. The properties in the interface are updated when the job is added. For example, the Id property is updated with the identifier that the scheduler assigns to the job.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

To create a job, call the IScheduler::CreateJob method. After setting the job properties and adding the tasks to the job, call the IScheduler::SubmitJob method to add the job to the scheduling queue. Note that you can call SubmitJob without calling AddJob in which case SubmitJob will add the job to the scheduler if it has not already been added.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

IScheduler

IScheduler::ConfigureJob

IScheduler::CreateJob

IScheduler::CancelJob

IScheduler::SubmitJob

IScheduler::OpenJob