Show / Hide Table of Contents

Interface IJobScheduler

Represents a One Compute job scheduler.

Namespace: DNVGL.One.Compute.Core.Scheduling
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IJobScheduler

Methods

View Source

BeginMonitorJobAsync(String)

Begin monitoring the specified Job. Any job and work item event for this job will be pushed through the event handlers on the returned IJobMonitor.

Declaration
Task<IJobMonitor> BeginMonitorJobAsync(string jobId)
Parameters
Type Name Description
System.String jobId

The job identifier.

Returns
Type Description
Task<IJobMonitor>

Asynchronous task

Remarks

The returned task ends when observation has been set up.

View Source

CancelJobAsync(String)

Cancels the job.

Declaration
Task CancelJobAsync(string jobId)
Parameters
Type Name Description
System.String jobId

The job identifier.

Returns
Type Description
Task

Cancellation task

Remarks

The returned task ends when the job has been cancelled with the backend services.

View Source

EndMonitorJobAsync(String)

End monitoring the specified Job.

Declaration
Task EndMonitorJobAsync(string jobId)
Parameters
Type Name Description
System.String jobId

The job identifier.

Returns
Type Description
Task

Asynchronous task

View Source

SubmitJobAsync(Job)

Submits the specified Job and returns a job monitor that allows the client to monitor the status and progress of the job. Any job and work item event for this job will be pushed through the event handlers on the returned IJobMonitor.

Declaration
Task<IJobMonitor> SubmitJobAsync(Job job)
Parameters
Type Name Description
Job job

The job.

Returns
Type Description
Task<IJobMonitor>

Job monitor

Extension Methods

JobSchedulerExtensions.SubmitJobAndWaitForTerminationAsync(IJobScheduler, Job)
JobSchedulerExtensions.SubmitJobAndWaitForTerminationAsync(IJobScheduler, Job, CancellationToken)
JobSchedulerExtensions.CancelJobAndWaitForTerminationAsync(IJobScheduler, String)
JobSchedulerExtensions.CancelJobAndWaitForTerminationAsync(IJobScheduler, String, CancellationToken)
  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.