Class JobOrchestrator
Orchestrates execution of a particular Job
Inheritance
System.Object
JobOrchestrator
Namespace: DNVGL.One.Compute.Scheduling.Orchestrator
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public class JobOrchestrator : object
Constructors
View SourceJobOrchestrator(Job, IJobEventPublisher, OrchestrationEnvironment, CancellationToken)
Initializes a new instance of the JobOrchestrator class.
Declaration
public JobOrchestrator(Job job, IJobEventPublisher eventPublisher, OrchestrationEnvironment orchestrationEnvironment, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Job | job | The job. |
| IJobEventPublisher | eventPublisher | The job event publisher. |
| OrchestrationEnvironment | orchestrationEnvironment | The orchestration environment. |
| CancellationToken | cancellationToken | The cancellation token. |
Properties
View SourceSchedulingOptions
Gets or sets the scheduling options.
Declaration
public SchedulingOptions SchedulingOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| SchedulingOptions | The scheduling options. |
TaskMonitoringInterval
Gets or sets the task monitoring interval (seconds). Default is 10 seconds.
Declaration
public int TaskMonitoringInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The task monitoring interval in seconds. |
Methods
View SourceMonitorWork()
Monitors the work.
Declaration
public JobOrchestrator.WorkMonitorInfo MonitorWork()
Returns
| Type | Description |
|---|---|
| JobOrchestrator.WorkMonitorInfo | Work status |
Orchestrate()
Orchestrates the specified job.
Declaration
public WorkStatus Orchestrate()
Returns
| Type | Description |
|---|---|
| WorkStatus | The end status of the job |
ProcessWork()
Processes the work.
Declaration
public WorkStatus ProcessWork()
Returns
| Type | Description |
|---|---|
| WorkStatus | The status of the current job. |
ScheduleWork()
Schedules the work.
Declaration
public IEnumerable<WorkUnit> ScheduleWork()
Returns
| Type | Description |
|---|---|
| IEnumerable<WorkUnit> | Scheduled work |