MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / ReNewTaskWithOps

Function ReNewTaskWithOps

agent/app/task/task.go:177–179  ·  view source on GitHub ↗
(resourceName, operate, scope, taskID string, resourceID uint)

Source from the content-addressed store, hash-verified

175}
176
177func ReNewTaskWithOps(resourceName, operate, scope, taskID string, resourceID uint) (*Task, error) {
178 return ReNewTask(GetTaskName(resourceName, operate, scope), operate, scope, taskID, resourceID)
179}
180func ReNewTask(name, operate, taskScope, taskID string, resourceID uint) (*Task, error) {
181 taskRepo := repo.NewITaskRepo()
182 taskItem, _ := taskRepo.GetFirst(taskRepo.WithByID(taskID))

Callers

nothing calls this directly

Calls 2

ReNewTaskFunction · 0.85
GetTaskNameFunction · 0.70

Tested by

no test coverage detected