Interface IJobEventPublisher
Publishes job events.
Namespace: DNVGL.One.Compute.Scheduling.Orchestrator
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public interface IJobEventPublisher
Methods
View SourcePostJobProgressChangedAsync(String, Double, String)
Posts a job progress changed event.
Declaration
Task PostJobProgressChangedAsync(string jobId, double progress, string message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jobId | The job identifier. |
| System.Double | progress | The progress. |
| System.String | message | The message. |
Returns
| Type | Description |
|---|---|
| Task | Asynchronous |
PostJobStatusChangedAsync(String, WorkStatus, String)
Posts a job status changed event.
Declaration
Task PostJobStatusChangedAsync(string jobId, WorkStatus jobStatus, string message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jobId | The job identifier. |
| WorkStatus | jobStatus | The job status. |
| System.String | message | The message. |
Returns
| Type | Description |
|---|---|
| Task | Asynchronous |
PostWorkItemProgressChangedAsync(String, String, Double, String)
Posts a work item progress changed event.
Declaration
Task PostWorkItemProgressChangedAsync(string jobId, string workItemId, double progress, string message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jobId | The job identifier. |
| System.String | workItemId | The work item identifier. |
| System.Double | progress | The progress. |
| System.String | message | The message. |
Returns
| Type | Description |
|---|---|
| Task | Asynchronous |
PostWorkItemStatusChangedAsync(String, String, WorkStatus, String)
Posts a work item status changed event.
Declaration
Task PostWorkItemStatusChangedAsync(string jobId, string workItemId, WorkStatus workItemStatus, string message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jobId | The job identifier. |
| System.String | workItemId | The work item identifier. |
| WorkStatus | workItemStatus | The work item status. |
| System.String | message | The message. |
Returns
| Type | Description |
|---|---|
| Task | Asynchronous |