| 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); |
no test coverage detected