1
0
voyager-api/ScrapperAPI/Interfaces/IExtractionRunRepository.cs

13 lines
488 B
C#

using ScrapperAPI.Dtos;
namespace ScrapperAPI.Interfaces;
public interface IExtractionRunRepository
{
Task<long> CreateAsync(CreateExtractionRunDto dto, CancellationToken ct);
Task<ExtractionRunRow?> GetByIdAsync(long id, CancellationToken ct);
Task MarkRunningAsync(long runId, CancellationToken ct);
Task MarkDoneAsync(long runId, int total, int succeeded, int failed, CancellationToken ct);
Task MarkFailedAsync(long runId, string error, CancellationToken ct);
}