feat: Add retry mechanism for blocked tasks

Blocked tasks (from spawn failures) were a dead-end with no way to
recover. Add retryBlockedTask to DispatchManager that resets status
to pending and re-queues, a tRPC mutation that also kicks dispatchNext,
and a Retry button in the task slide-over when status is blocked.
This commit is contained in:
Lukas May
2026-03-05 20:41:49 +01:00
parent 2eac5b9908
commit d81e0864f7
6 changed files with 70 additions and 12 deletions

View File

@@ -50,6 +50,7 @@ function createMockDispatchManager(): DispatchManager {
dispatchNext: vi.fn().mockResolvedValue({ success: false, reason: 'mock' }),
completeTask: vi.fn(),
blockTask: vi.fn(),
retryBlockedTask: vi.fn(),
getQueueState: vi.fn().mockResolvedValue({ queued: [], ready: [], blocked: [] }),
};
}