MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / execute

Method execute

base/poco/Util/src/Timer.cpp:132–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 bool execute()
133 {
134 if (!_pTask->isCancelled())
135 {
136 try
137 {
138 _pTask->_lastExecution.update();
139 _pTask->run();
140 }
141 catch (Exception& exc)
142 {
143 ErrorHandler::handle(exc);
144 }
145 catch (std::exception& exc)
146 {
147 ErrorHandler::handle(exc);
148 }
149 catch (...)
150 {
151 ErrorHandler::handle();
152 }
153 }
154 return true;
155 }
156
157private:
158 TimerTask::Ptr _pTask;

Callers

nothing calls this directly

Calls 4

handleFunction · 0.85
isCancelledMethod · 0.45
updateMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected