Skip to content

Commit

Permalink
feat: retry all failed task (close #5242)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Nov 21, 2023
1 parent 7583c4d commit b2890f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/handles/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b2890f0

Please sign in to comment.