MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / FindTask

Method FindTask

src/tablet/tablet_impl.cc:3985–3997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3983}
3984
3985std::shared_ptr<::fedb::api::TaskInfo> TabletImpl::FindTask(
3986 uint64_t op_id, ::fedb::api::TaskType task_type) {
3987 auto iter = task_map_.find(op_id);
3988 if (iter == task_map_.end()) {
3989 return std::shared_ptr<::fedb::api::TaskInfo>();
3990 }
3991 for (auto& task : iter->second) {
3992 if (task->op_id() == op_id && task->task_type() == task_type) {
3993 return task;
3994 }
3995 }
3996 return std::shared_ptr<::fedb::api::TaskInfo>();
3997}
3998
3999int TabletImpl::AddOPMultiTask(
4000 const ::fedb::api::TaskInfo& task_info, ::fedb::api::TaskType task_type,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected