MCPcopy Create free account
hub / github.com/bytedance/bolt / start

Method start

bolt/exec/tests/utils/Cursor.cpp:306–321  ·  view source on GitHub ↗

Starts the task if not started yet.

Source from the content-addressed store, hash-verified

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.

Callers 15

TEST_FFunction · 0.45
DEBUG_ONLY_TEST_FFunction · 0.45
runOneMethod · 0.45
startSpillGroupMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
DEBUG_ONLY_TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_PFunction · 0.45
TestSplitMethod · 0.45

Calls 4

setNumProducersMethod · 0.80
numOutputDriversMethod · 0.80
messageMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected