Interface ISupportJobRelease
Optional interface to be implemented by a worker. If implemented, the worker host will invoke the ReleaseJobAsync(IWorkerExecutionStatusNotificationService, IWorkUnit) method when the job release task is run.
Namespace: DNVGL.One.Compute.Core.Worker
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface ISupportJobRelease
Methods
View SourceReleaseJobAsync(IWorkerExecutionStatusNotificationService, IWorkUnit)
Releases the job.
Declaration
Task<object> ReleaseJobAsync(IWorkerExecutionStatusNotificationService workerExecutionStatusNotificationService, IWorkUnit workUnit)
Parameters
Type | Name | Description |
---|---|---|
IWorkerExecutionStatusNotificationService | workerExecutionStatusNotificationService | The worker execution status notification service. |
IWorkUnit | workUnit | The work unit. |
Returns
Type | Description |
---|---|
Task<System.Object> | Release result. |