mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
feat: retry all failed task (close #5242)
This commit is contained in:
parent
7583c4d734
commit
b2890f05ab
@ -71,6 +71,10 @@ func taskRoute[T tache.TaskWithInfo](g *gin.RouterGroup, manager *tache.Manager[
|
||||
manager.RemoveByState(tache.StateSucceeded)
|
||||
common.SuccessResp(c)
|
||||
})
|
||||
g.POST("/retry_failed", func(c *gin.Context) {
|
||||
manager.RetryAllFailed()
|
||||
common.SuccessResp(c)
|
||||
})
|
||||
}
|
||||
|
||||
func SetupTaskRoute(g *gin.RouterGroup) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user