Export (0) Print
Expand All

ISchedulerJobEvents::OnTaskState method

Is called when the state of a task in the job changes.

Syntax


HRESULT OnTaskState(
  [in]  VARIANT Sender,
  [in]  ITaskStateEventArg *pArgs
);

Parameters

Sender [in]

A variant that contains the Scheduler object.

pArgs [in]

An ITaskStateEventArg interface that provides information related to the state of the job.

Return value

You must return S_OK.

Remarks

To get the job, query the pdispVal member of Sender for the IScheduler interface. Then, pass the ITaskStateEventArg.JobId property to the IScheduler::OpenJob method. To get the task, pass the ITaskStateEventArg.TaskId property to the ISchedulerJob::OpenTask method.

The dispatch identifier for this method is 0x60020001.

Examples

For an example, see Implementing the Event Handlers for Job Events in C++.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJobEvents
ISchedulerJobEvents::OnJobState

 

 

Show:
© 2014 Microsoft