Loading core/src/scheduler/action/PushTaskToNeighbour.cpp +12 −10 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ Action::DefaultLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr resource, bool moved = false; // to support test task, REFACTOR if (resource->type() == ResourceType::CPU) { if (auto index_engine = search_task->index_engine_) { auto location = index_engine->GetLocation(); Loading @@ -123,6 +124,7 @@ Action::DefaultLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr resource, } } } } if (not moved) { PushTaskToNeighbourRandomly(task, resource); Loading Loading
core/src/scheduler/action/PushTaskToNeighbour.cpp +12 −10 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ Action::DefaultLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr resource, bool moved = false; // to support test task, REFACTOR if (resource->type() == ResourceType::CPU) { if (auto index_engine = search_task->index_engine_) { auto location = index_engine->GetLocation(); Loading @@ -123,6 +124,7 @@ Action::DefaultLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr resource, } } } } if (not moved) { PushTaskToNeighbourRandomly(task, resource); Loading