MCPcopy
hub / github.com/kubesphere/kubekey / taskExecutor

Struct taskExecutor

pkg/executor/task_executor.go:29–34  ·  view source on GitHub ↗

taskExecutor handles the execution of a single task across multiple hosts.

Source from the content-addressed store, hash-verified

27
28// taskExecutor handles the execution of a single task across multiple hosts.
29type taskExecutor struct {
30 *option
31 task *kkcorev1alpha1.Task
32 // taskRunTimeout is the timeout for task executor
33 taskRunTimeout time.Duration
34}
35
36// Exec creates and executes a task, updating its status and the parent playbook's status.
37// It returns an error if the task creation or execution fails.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected