Table of Contents

Method GetLatestRunsAsync

Namespace
Oscova.Agents.Tasks
Assembly
Oscova.Agents.dll

GetLatestRunsAsync(IEnumerable<string>, CancellationToken)

Returns the most recent run for each of the given task IDs in a single query. Tasks that have never run are absent from the returned dictionary.

public Task<IReadOnlyDictionary<string, AgentTaskRun>> GetLatestRunsAsync(IEnumerable<string> taskIds, CancellationToken ct = default)

Parameters

taskIds IEnumerable<string>
ct CancellationToken

Returns

Task<IReadOnlyDictionary<string, AgentTaskRun>>