feat(roadblock): persist roadblock count on the task

This commit is contained in:
mika kuns
2026-06-04 14:58:59 +02:00
parent 4d52845130
commit 49b9f1ffde
8 changed files with 824 additions and 0 deletions

View File

@@ -127,6 +127,13 @@ public sealed class TaskRepository
.ExecuteUpdateAsync(s => s.SetProperty(t => t.LogPath, logPath), ct);
}
public async Task SetRoadblockCountAsync(string taskId, int count, CancellationToken ct = default)
{
await _context.Tasks
.Where(t => t.Id == taskId)
.ExecuteUpdateAsync(s => s.SetProperty(t => t.RoadblockCount, count), ct);
}
internal async Task<int> FlipAllRunningToFailedAsync(string reason, CancellationToken ct = default)
{
var resultText = "[stale] " + reason;