| 66 | } |
| 67 | |
| 68 | ExecutorGroup::Executors ExecutorGroup::GetAllExecutorDescriptors() const { |
| 69 | Executors executors; |
| 70 | for (const auto& executor_list: executor_map_) { |
| 71 | executors.insert(executors.end(), executor_list.second.begin(), |
| 72 | executor_list.second.end()); |
| 73 | } |
| 74 | return executors; |
| 75 | } |
| 76 | |
| 77 | void ExecutorGroup::AddExecutor(const BackendDescriptorPB& be_desc) { |
| 78 | // be_desc.is_executor can be false for the local backend when scheduling queries to run |