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.
Task<IReadOnlyDictionary<string, AgentTaskRun>> GetLatestRunsAsync(IEnumerable<string> taskIds, CancellationToken ct = default)Parameters
taskIdsIEnumerable<string>ctCancellationToken