ISchedulerCore::JobId property
Retrieves the identifier of the job running on the core.
This property is read-only.
Syntax
HRESULT get_JobId(
[out] long *pJobId
);
Property value
The identifier of the job running on the core; otherwise, zero.
Error codes
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.
Remarks
This job identifier and the ParentJobId property of ISchedulerCore.TaskId will be the same value if a task is running. If the job is reserving resources (the job does not include tasks and the RunUntilCanceled property is VARIANT_TRUE), this identifier will contain the job identifier and the ParentJobId property will be zero.
Examples
For an example, see Getting a List of Nodes in the Cluster.
Requirements
Product |
HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities |
Type library |
Microsoft.Hpc.Scheduler.tlb |