kl0u commented on a change in pull request #9972: [FLINK-14496][client] Exclude 
detach flag from ClusterClient
URL: https://github.com/apache/flink/pull/9972#discussion_r340517441
 
 

 ##########
 File path: 
flink-clients/src/main/java/org/apache/flink/client/program/ContextEnvironment.java
 ##########
 @@ -87,9 +88,13 @@ public JobExecutionResult execute(String jobName) throws 
Exception {
                ClientUtils.addJarFiles(jobGraph, this.jarFilesToAttach);
                jobGraph.setClasspaths(this.classpathsToAttach);
 
-               lastJobExecutionResult = client
-                               .submitJob(jobGraph, this.userCodeClassLoader)
-                               .getJobExecutionResult();
+               JobSubmissionResult jobSubmissionResult = 
client.submitJob(jobGraph).get();
+
 
 Review comment:
   You can get the jobId before the if-then-else loop: 
   ```
   JobID jobID = jobSubmissionResult.getJobID();
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to