MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewTask

Method NewTask

exec/executor.go:101–106  ·  view source on GitHub ↗

NewTask create new task (from current context).

(p plan.Task)

Source from the content-addressed store, hash-verified

99
100// NewTask create new task (from current context).
101func (m *JobExecutor) NewTask(p plan.Task) Task {
102 if p.IsParallel() {
103 return NewTaskParallel(m.Ctx)
104 }
105 return NewTaskSequential(m.Ctx)
106}
107
108// WalkPlan Main Entry point to take a Plan, and convert into Execution DAG
109func (m *JobExecutor) WalkPlan(p plan.Task) (Task, error) {

Callers 10

WalkSelectMethod · 0.95
WalkUpsertMethod · 0.95
WalkInsertMethod · 0.95
WalkUpdateMethod · 0.95
WalkDeleteMethod · 0.95
WalkPlanAllMethod · 0.95
WalkCommandMethod · 0.95
WalkCreateMethod · 0.95
WalkDropMethod · 0.95
WalkAlterMethod · 0.95

Calls 3

NewTaskParallelFunction · 0.85
NewTaskSequentialFunction · 0.85
IsParallelMethod · 0.65

Tested by

no test coverage detected