ISchedulerJob::CanPreempt property

Determines whether another job can preempt this job.

This property is read/write.

Syntax


HRESULT put_CanPreempt(
  [in]  VARIANT_BOOL canPreempt
);

HRESULT get_CanPreempt(
  [out] VARIANT_BOOL *pCanPreempt
);

Property value

Set to VARIANT_TRUE if another job can preempt this job; otherwise, VARIANT_FALSE.

The Default job template sets the default value to VARIANT_FALSE.

Error codes

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, access the ISchedulerJob::ErrorMessage property.

Remarks

For details on job preemption, see the PreemptionType configuration parameter in IScheduler::SetClusterParameter.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJob
ISchedulerJob.Priority

 

 

Show: