MCPcopy Create free account
hub / github.com/catboost/catboost / LaunchLocalJobRequest

Function LaunchLocalJobRequest

library/cpp/par/par_exec.cpp:107–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 void LaunchLocalJobRequest(TJobRequest* jr, int localCompId, IUserContext* userContext, IMRCommandCompleteNotify* mrNotify) {
108 int hostIdCount = userContext->GetHostIdCount();
109 jr->HostId2Computer.resize(0);
110 jr->HostId2Computer.resize(hostIdCount);
111
112 int mapJobCount = jr->Descr.ExecList.ysize();
113 for (int i = 0; i < mapJobCount; ++i) {
114 TJobParams& params = jr->Descr.ExecList[i];
115 params.CompId = localCompId;
116 }
117 jr->ExecPlan.resize(0); // empty execplan means execute locally
118
119 TMRCommandExec::Launch(jr, nullptr, localCompId, userContext, mrNotify);
120 }
121
122 bool LaunchJobRequest(TJobRequest* jr, TRemoteQueryProcessor* queryProc, IUserContext* userContext, IMRCommandCompleteNotify* mrNotify) {
123 Y_ASSERT(queryProc);

Callers 2

LaunchJobRequestFunction · 0.85
AsyncStartGroupRequestFunction · 0.85

Calls 3

GetHostIdCountMethod · 0.45
resizeMethod · 0.45
ysizeMethod · 0.45

Tested by

no test coverage detected