mirror of https://github.com/Xhofe/alist
feat: retry all failed task (close #5242)
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…
Reference in New Issue