Share via


IJob::put_Priority method

Sets the job priority.

Syntax

HRESULT put_Priority(
  [in] JobPriority Val
);

Parameters

  • Val [in]
    The job priority. The default is JobPriority_Normal. For a list of values, see JobPriority.

Return value

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

Remarks

Compute cluster resources are allocated to jobs based on job priority, except for backfill jobs. For information about backfill jobs, see the Remarks section of IJob::get_IsBackfill. Jobs are not preempted; they run until they finish, fail or are canceled.

Within a job, tasks receive resources based on the order in which they were added to the job. If a processor is available, the task will run.

To retrieve the job priority, use the IJob::get_Priority method.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

IJob

IJob::get_Priority