Method GetLatestRunAsync
- Namespace
- Oscova.Agents.Tasks
- Assembly
- Oscova.Agents.dll
GetLatestRunAsync(string, string, CancellationToken)
Returns the most recent run for the given task, or null if the task has never run.
public Task<AgentTaskRun?> GetLatestRunAsync(string userId, string taskId, CancellationToken ct = default)Parameters
userIdstringtaskIdstringctCancellationToken