namespace KArtSell.BuildingBlocks.Reliability;

public interface IJobRunRepository
{
    Task<bool> TryStartAsync(JobRunStart start, CancellationToken cancellationToken);
    Task HeartbeatAsync(Guid jobRunId, DateTimeOffset at, CancellationToken cancellationToken);
    Task CompleteAsync(JobRunCompletion completion, CancellationToken cancellationToken);
}
