MCPcopy Index your code
hub / github.com/aptly-dev/aptly / apiTasksClear

Function apiTasksClear

api/task.go:27–31  ·  view source on GitHub ↗

@Summary Clear Tasks @Description **Removes finished and failed tasks from internal task list** @Tags Tasks @Produce json @Success 200 "" @Router /api/tasks-clear [post]

(c *gin.Context)

Source from the content-addressed store, hash-verified

25// @Success 200 ""
26// @Router /api/tasks-clear [post]
27func apiTasksClear(c *gin.Context) {
28 list := context.TaskList()
29 list.Clear()
30 c.JSON(200, gin.H{})
31}
32
33// @Summary Wait for all Tasks
34// @Description **Waits for and returns when all running tasks are complete**

Callers

nothing calls this directly

Calls 2

TaskListMethod · 0.80
ClearMethod · 0.80

Tested by

no test coverage detected