feat(FN-5137): complete Step 1 — invalidate on task deleted
Fusion-Task-Id: FN-5137 Fusion-Task-Lineage: bb2e2e56-d64c-46ca-a6c8-abda13029fc2
This commit is contained in:
committed by
gsxdsm
parent
ad35a1ccfc
commit
4eccbe2fb5
@@ -502,6 +502,14 @@ export class Scheduler {
|
||||
this.options.prMonitor.startMonitoring(task.id, repo.owner, repo.repo, task.prInfo);
|
||||
}
|
||||
});
|
||||
|
||||
this.store.on("task:deleted", (task) => {
|
||||
this.options.snapshotManager?.invalidate("task:deleted");
|
||||
this.pausedTaskIds.delete(task.id);
|
||||
this.failedTaskIds.delete(task.id);
|
||||
this.wasNodeDispatchValidationBlocked.delete(task.id);
|
||||
this.wasNodeBlocked.delete(task.id);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user