Skip to content

Commit

Permalink
Merge pull request #242 from data-integrations/CDAP-20951
Browse files Browse the repository at this point in the history
[CDAP-20951] set namespace while executing request remotely
  • Loading branch information
itsankit-google authored Feb 3, 2024
2 parents 2d26a1f + 099a1f9 commit b8bc447
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,10 @@ private void executeRemotely(Namespace namespace, DeltaConfig config, @Nullable
DeltaConfig deltaConfig = getMacroEvaluator().evaluateMacros(namespace, config);
RemoteAssessmentRequest remoteRequest = new RemoteAssessmentRequest(namespace.getName(), deltaConfig, request);
RunnableTaskRequest runnableTaskRequest =
RunnableTaskRequest.getBuilder(remoteExecutionTaskClass.getName()).
withParam(GSON.toJson(remoteRequest)).
build();
RunnableTaskRequest.getBuilder(remoteExecutionTaskClass.getName())
.withParam(GSON.toJson(remoteRequest))
.withNamespace(namespace.getName())
.build();
try {
byte[] bytes = getContext().runTask(runnableTaskRequest);
responder.sendString(new String(bytes, StandardCharsets.UTF_8));
Expand Down

0 comments on commit b8bc447

Please sign in to comment.