ISchedulerJob::Finish method
Sets the job to the finished state and does not run any additional tasks except node release tasks.
Syntax
HRESULT Finish();
Parameters
This method has no parameters.
Return value
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error value.
Remarks
You can use this method to finish jobs that have the ISchedulerJob::RunUntilCanceledproperty set to VARIANT_TRUE when you have an alternate way of determining that the job is finished.
You can call this method only for jobs that are in the Queued or Running states.
The ISchedulerJob::Finish method is essentially equivalent to calling the IScheduler::CancelJob method, except that the ISchedulerJob::Finish method sets the state of the job to Finished instead of Canceled.
Requirements
Product |
HPC Pack 2008 R2 Client Utilities |
Type library |
Microsoft.Hpc.Scheduler.tlb |