# Functions
AbortTaskExecution godoc @Summary Abort a running task and kill the pod @Description Kill a running k8s job and update its task execution @Tags execution @Produce json @Param executionId path string true "The task execution id" @Success 200 @Router /api/v1/execution/{executionId}/abort [post].
CreateTaskDefinition godoc @Summary Create a new task definition @Description Generate a new definition of a task to run with cadence, parameters and runtime data @Tags definition @Produce application/json @Param newTaskDef body models.TaskDefinition true "Task definition JSON" @Success 200 @Router /api/v1/task [post].
DeleteTaskDefinition godoc @Summary Delete a task definition @Description Mark a task definition as deleted (it is not actually deleted from the db) @Tags definition @Produce application/json @Param definitionId path string true "The task definition id" @Success 200 @Router /api/v1/task/{definitionId} [delete].
GetAllPendingTaskDefinitions godoc @Summary Get all of the pending task definitions @Description Filter to get the task pending tasks @Tags definition @Produce json @Success 200 {object} []models.TaskDefinition @Router /api/v1/task/pending [get].
GetAllTaskDefinitions godoc @Summary Get all task definitions @Description Filter to get the task definitions you need @Tags definition @Produce json @Success 200 {object} []models.TaskDefinition @Router /api/v1/task [get].
GetLatestExecution godoc @Summary Get the latest execution of a given definitions @Description Filter to get the task definitions you need @Tags definition @Produce json @Success 200 {object} []models.TaskExecution @Param definitionId path string true "The task definition id" @Router /api/v1/task/{definitionId}/latest [get].
Ping godoc @Summary Health check route @Description Used for health check @Tags Health @Produce json @Success 200 @Router /ping [get].
RerunTask godoc @Summary Rerun a task definition @Description Rerun a task definition previously created @Tags definition @Produce json @Param definitionId path string true "The task definition id" @Success 200 @Router /api/v1/task/{definitionId}/rerun [post].
UpdateTaskDefinition godoc @Summary Update a task definition @Description Update a definition of a task to run with cadence, parameters and runtime data @Tags definition @Produce application/json @Param newTaskDef body models.TaskDefinition true "Task definition JSON" @Success 200 @Router /api/v1/task [put].