Starts the task if not started yet.
| 304 | |
| 305 | /// Starts the task if not started yet. |
| 306 | void start() override { |
| 307 | if (!started_) { |
| 308 | started_ = true; |
| 309 | try { |
| 310 | task_->start(maxDrivers_, numConcurrentSplitGroups_); |
| 311 | queue_->setNumProducers(numSplitGroups_ * task_->numOutputDrivers()); |
| 312 | } catch (const BoltException& e) { |
| 313 | // Could not find output pipeline, due to Task terminated before |
| 314 | // start. Do not override the error. |
| 315 | if (e.message().find("Output pipeline not found for task") == |
| 316 | std::string::npos) { |
| 317 | throw; |
| 318 | } |
| 319 | } |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | /// Fetches another batch from the task queue. |
| 324 | /// Starts the task if not started yet. |
no test coverage detected