Make task state store-owned and signal its changes to the lead

This commit is contained in:
Ian Gulliver
2026-10-16 11:15:32 -07:00
parent 34db128afe
commit d26c81ceb1
15 changed files with 451 additions and 199 deletions
+4
View File
@@ -471,6 +471,10 @@ func (m *Manager) cancelReviews(ctx context.Context, task api.Task, project api.
}
func (m *Manager) recoverReviews(ctx context.Context) error {
err := m.store.ClearReviewRequests(ctx)
if err != nil {
return err
}
running, err := m.store.RunningReviews(ctx)
if err != nil {
return err