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

Function NewTaskWithOps

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

Source from the content-addressed store, hash-verified

105}
106
107func NewTaskWithOps(resourceName, operate, scope, taskID string, resourceID uint) (*Task, error) {
108 return NewTask(GetTaskName(resourceName, operate, scope), operate, scope, taskID, resourceID)
109}
110
111func CheckTaskIsExecuting(name string) error {
112 taskRepo := repo.NewITaskRepo()

Callers

nothing calls this directly

Calls 2

NewTaskFunction · 0.70
GetTaskNameFunction · 0.70

Tested by

no test coverage detected