You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/10/30 10:08:54 UTC

[GitHub] [flink] kl0u commented on a change in pull request #9972: [FLINK-14496][client] Exclude detach flag from ClusterClient

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:
users@infra.apache.org


With regards,
Apache Git Services