21.185. Class TaskProcessingCheckerClient
Namespace: ArmoniK.Core.Common.Pollster.TaskProcessingChecker
Assembly: ArmoniK.Core.Common.dll
Implements the
public class TaskProcessingCheckerClient : ITaskProcessingChecker
21.185.1. Inheritance
21.185.2. Implements
21.185.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.185.4. Constructors
21.185.4.1. TaskProcessingCheckerClient(IHttpClientFactory, ILogger<TaskProcessingCheckerClient>)
Initializes a new instance of the
public TaskProcessingCheckerClient(IHttpClientFactory httpClientFactory, ILogger<TaskProcessingCheckerClient> logger)
21.185.4.1.1. Parameters
httpClientFactory IHttpClientFactory
The HTTP client factory used to create HTTP clients for communication with other pods.
logger ILogger<TaskProcessingCheckerClient>
The logger used for diagnostic and trace logging.
21.185.5. Methods
21.185.5.1. Check(string, string, CancellationToken)
Check if the task is running on the given pod
public Task<bool> Check(string taskId, string ownerPodId, CancellationToken cancellationToken)
21.185.5.1.1. Parameters
taskId string
id of the task to check
ownerPodId string
Id of the pod which should execute the task
cancellationToken CancellationToken
Token used to cancel the execution of the method
21.185.5.1.2. Returns
A bool representing whether or not the task is running on the pod