21.184. Class TaskProcessingCheckerClient
Namespace: ArmoniK.Core.Common.Pollster.TaskProcessingChecker
Assembly: ArmoniK.Core.Common.dll
public class TaskProcessingCheckerClient : ITaskProcessingChecker
21.184.1. Inheritance
21.184.2. Implements
21.184.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.184.4. Constructors
21.184.4.1. TaskProcessingCheckerClient(IHttpClientFactory, ILogger<TaskProcessingCheckerClient>)
public TaskProcessingCheckerClient(IHttpClientFactory httpClientFactory, ILogger<TaskProcessingCheckerClient> logger)
21.184.4.1.1. Parameters
httpClientFactory IHttpClientFactory
logger ILogger<TaskProcessingCheckerClient>
21.184.5. Methods
21.184.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.184.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.184.5.1.2. Returns
A bool representing whether or not the task is running on the pod