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 SourceBeginMonitorJobAsync(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.
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.
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 |
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 |