aljoscha commented on a change in pull request #13396:
URL: https://github.com/apache/flink/pull/13396#discussion_r490842382



##########
File path: 
flink-clients/src/main/java/org/apache/flink/client/program/ContextEnvironment.java
##########
@@ -76,6 +76,7 @@ public JobExecutionResult execute(String jobName) throws 
Exception {
                        final JobExecutionResult  jobExecutionResult = 
getJobExecutionResult(jobClient);
                        jobListeners.forEach(jobListener ->
                                        
jobListener.onJobExecuted(jobExecutionResult, null));
+                       this.lastJobExecutionResult = jobExecutionResult;

Review comment:
       Instead of using a local variable `jobExecutionResult` we could just 
always use the field `lastJobExecutionResult` here.




----------------------------------------------------------------
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]


Reply via email to