NewTask create new task (from current context).
(p plan.Task)
| 99 | |
| 100 | // NewTask create new task (from current context). |
| 101 | func (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 |
| 109 | func (m *JobExecutor) WalkPlan(p plan.Task) (Task, error) { |
no test coverage detected