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