Interface IJobOrchestrator
Represents a job orchestrator.
Namespace: DNVGL.One.Compute.Scheduling.Scheduler
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public interface IJobOrchestrator
Properties
View SourceTaskMonitoringInterval
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 SourceAddDynamicWorkTask(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 |
| Task<WorkStatus> | dynamicWorkTask | Task executing dynamic work. |
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. |
CancelWork(String)
Cancels ongoing work.
Declaration
void CancelWork(string jobId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jobId | The job identifier. |
Work(Job)
Orchestrate the job.
Declaration
void Work(Job job)
Parameters
| Type | Name | Description |
|---|---|---|
| Job | job | The job. |
Events
View SourceJobTerminated
Occurs when a job has terminated.
Declaration
event EventHandler<JobEventArgs> JobTerminated
Event Type
| Type | Description |
|---|---|
| EventHandler<JobEventArgs> |