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

Method GetActiveTaskForVM

internal/taskmanager/manager.go:353–357  ·  view source on GitHub ↗
(node string, vmid int)

Source from the content-addressed store, hash-verified

351}
352
353func (tm *TaskManager) GetActiveTaskForVM(node string, vmid int) *Task {
354 tm.mu.RLock()
355 defer tm.mu.RUnlock()
356 return cloneTask(tm.activeTasks[taskKey(node, vmid)])
357}
358
359func (tm *TaskManager) GetAllTasks() []*Task {
360 tm.mu.RLock()

Callers 6

TestTaskManagerFunction · 0.95
TestTaskManager_CancelFunction · 0.95
ShowVMContextMenuMethod · 0.80
SetVMsMethod · 0.80

Calls 2

cloneTaskFunction · 0.85
taskKeyFunction · 0.85