MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / cloneTask

Function cloneTask

internal/taskmanager/manager.go:65–72  ·  view source on GitHub ↗
(task *Task)

Source from the content-addressed store, hash-verified

63const defaultMaxRunningTasks = 3
64
65func cloneTask(task *Task) *Task {
66 if task == nil {
67 return nil
68 }
69
70 cloned := *task
71 return &cloned
72}
73
74func NewTaskManager(clientResolver ClientResolver, updateNotify func()) *TaskManager {
75 return NewTaskManagerWithMaxRunning(clientResolver, updateNotify, defaultMaxRunningTasks)

Callers 4

EnqueueMethod · 0.85
GetActiveTaskMethod · 0.85
GetActiveTaskForVMMethod · 0.85
GetAllTasksMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected