Share via


ISchedulerJob::CanShrink property

Determines whether the job resources can shrink.

This property is read-only.

Syntax

HRESULT get_CanShrink(
  [out] VARIANT_BOOL *pCanShrink
);

Property value

If VARIANT_TRUE, the server releases extra resources when they are no longer needed by the job; otherwise, VARIANT_FALSE. The default value is VARIANT_TRUE.

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

The server will remove resources from job if it determines that the job no longer needs the resources; the server will not shrink the resources beyond the minimum requested.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJob

ISchedulerJob.AutoCalculateMin

ISchedulerJob.CanGrow

ISchedulerJob.MinimumNumberOfNodes

ISchedulerJob.MinimumNumberOfCores

ISchedulerJob.MinimumNumberOfSockets