Show / Hide Table of Contents

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 Source

AwaitJobTerminationAsync(CancellationToken)

Awaits job termination.

Declaration
Task<WorkStatus> AwaitJobTerminationAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<WorkStatus>

Terminal job status.

Events

View Source

JobProgressChanged

Occurs when a Job changes progress.

Declaration
event EventHandler<JobEventArgs> JobProgressChanged
Event Type
Type Description
EventHandler<JobEventArgs>
View Source

JobStatusChanged

Occurs when a Job changes status.

Declaration
event EventHandler<JobEventArgs> JobStatusChanged
Event Type
Type Description
EventHandler<JobEventArgs>
View Source

WorkItemProgressChanged

Occurs when a WorkItem changes progress.

Declaration
event EventHandler<WorkItemEventArgs> WorkItemProgressChanged
Event Type
Type Description
EventHandler<WorkItemEventArgs>
View Source

WorkItemStatusChanged

Occurs when a WorkItem changes status.

Declaration
event EventHandler<WorkItemEventArgs> WorkItemStatusChanged
Event Type
Type Description
EventHandler<WorkItemEventArgs>
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.