feat(task): add clear succeeded and retry (#3856 close #3776)

This commit is contained in:
Brian
2023-03-16 15:56:27 +08:00
committed by GitHub
parent a1e88cfa05
commit 8c0defce09
2 changed files with 21 additions and 0 deletions

View File

@ -122,6 +122,10 @@ func (tm *Manager[K]) ClearDone() {
tm.RemoveByStates(SUCCEEDED, CANCELED, ERRORED)
}
func (tm *Manager[K]) ClearSucceeded() {
tm.RemoveByStates(SUCCEEDED)
}
func (tm *Manager[K]) RawTasks() *generic_sync.MapOf[K, *Task[K]] {
return &tm.tasks
}