Interface IJobMonitor
Allows monitoring progress and status of jobs and individual work items. It is created by the IJobScheduler when scheduling a job (see SubmitJobAsync(Job)) or when requesting to monitor the job (see BeginMonitorJobAsync(String)).
Namespace: DNVGL.One.Compute.Core.Scheduling
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IJobMonitor
Methods
View SourceAwaitJobTerminationAsync(CancellationToken)
Awaits job termination.
Declaration
Task<WorkStatus> AwaitJobTerminationAsync(CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkStatus> | Terminal job status. |
Events
View SourceJobProgressChanged
Occurs when a Job changes progress.
Declaration
event EventHandler<JobEventArgs> JobProgressChanged
Event Type
Type | Description |
---|---|
EventHandler<JobEventArgs> |
JobStatusChanged
Occurs when a Job changes status.
Declaration
event EventHandler<JobEventArgs> JobStatusChanged
Event Type
Type | Description |
---|---|
EventHandler<JobEventArgs> |
WorkItemProgressChanged
Occurs when a WorkItem changes progress.
Declaration
event EventHandler<WorkItemEventArgs> WorkItemProgressChanged
Event Type
Type | Description |
---|---|
EventHandler<WorkItemEventArgs> |
WorkItemStatusChanged
Occurs when a WorkItem changes status.
Declaration
event EventHandler<WorkItemEventArgs> WorkItemStatusChanged
Event Type
Type | Description |
---|---|
EventHandler<WorkItemEventArgs> |