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

Method StopTask

pkg/api/cluster.go:568–571  ·  view source on GitHub ↗

StopTask attempts to stop/cancel a running task.

(node, upid string)

Source from the content-addressed store, hash-verified

566
567// StopTask attempts to stop/cancel a running task.
568func (c *Client) StopTask(node, upid string) error {
569 path := fmt.Sprintf("/nodes/%s/tasks/%s", node, url.PathEscape(upid))
570 return c.Delete(path)
571}
572
573// GetClusterTasks retrieves recent cluster tasks.
574func (c *Client) GetClusterTasks() ([]*ClusterTask, error) {

Callers 1

CancelTaskMethod · 0.80

Calls 1

DeleteMethod · 0.95

Tested by

no test coverage detected