MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / runTask

Method runTask

src/common/task_system/task_scheduler.cpp:215–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void TaskScheduler::runTask(Task* task) {
216 try {
217 task->run();
218 task->deRegisterThreadAndFinalizeTask();
219 } catch (std::exception& e) {
220 task->setException(std::current_exception());
221 task->deRegisterThreadAndFinalizeTask();
222 }
223}
224
225TaskScheduler* TaskScheduler::Get(const main::ClientContext& context) {
226 return context.getDatabase()->getQueryProcessor()->getTaskScheduler();

Callers

nothing calls this directly

Calls 2

runMethod · 0.45

Tested by

no test coverage detected