Show / Hide Table of Contents

Interface IJobOrchestrator

Represents a job orchestrator.

Namespace: DNVGL.One.Compute.Scheduling.Scheduler
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public interface IJobOrchestrator

Properties

View Source

TaskMonitoringInterval

Gets or sets the task status monitoring interval (in seconds).

Declaration
int TaskMonitoringInterval { get; set; }
Property Value
Type Description
System.Int32

The task status monitoring interval (in seconds).

Methods

View Source

AddDynamicWorkTask(String, Task<WorkStatus>)

Adds the task executing dynamic work to a list in the job orchestrator. This enables the job orchestrator to wait for dynamic work to terminate.

Declaration
void AddDynamicWorkTask(string workId, Task<WorkStatus> dynamicWorkTask)
Parameters
Type Name Description
System.String workId

Id of the work item being processed by the dynamicWorkTask.

Task<WorkStatus> dynamicWorkTask

Task executing dynamic work.

View Source

AddWorkToJob(Job, WorkItem)

Adds work to job.

Declaration
WorkStatus AddWorkToJob(Job job, WorkItem work)
Parameters
Type Name Description
Job job

The job.

WorkItem work

Work to be added.

Returns
Type Description
WorkStatus

The status of the work.

View Source

CancelWork(String)

Cancels ongoing work.

Declaration
void CancelWork(string jobId)
Parameters
Type Name Description
System.String jobId

The job identifier.

View Source

Work(Job)

Orchestrate the job.

Declaration
void Work(Job job)
Parameters
Type Name Description
Job job

The job.

Events

View Source

JobTerminated

Occurs when a job has terminated.

Declaration
event EventHandler<JobEventArgs> JobTerminated
Event Type
Type Description
EventHandler<JobEventArgs>
  • View Source
In This Article
Back to top Copyright © DNV AS. All rights reserved.