mxm commented on a change in pull request #7249: [FLINK-11048] Ability to 
programmatically execute streaming pipeline with savepoint restore
URL: https://github.com/apache/flink/pull/7249#discussion_r242907203
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/RemoteStreamEnvironment.java
 ##########
 @@ -169,33 +173,66 @@ public RemoteStreamEnvironment(String host, int port, 
Configuration clientConfig
                }
        }
 
-       @Override
-       public JobExecutionResult execute(String jobName) throws 
ProgramInvocationException {
-               StreamGraph streamGraph = getStreamGraph();
-               streamGraph.setJobName(jobName);
-               transformations.clear();
-               return executeRemotely(streamGraph, jarFiles);
+       /**
+        * Set savepoint restore settings that will be used when executing the 
job.
+        * @param savepointRestoreSettings savepoint restore settings
+        */
+       public void setSavepointRestoreSettings(SavepointRestoreSettings 
savepointRestoreSettings) {
+               this.savepointRestoreSettings = savepointRestoreSettings;
 
 Review comment:
   This argument was countered by the fact that the other parameters are also 
not per-execution. I don't mind, both the constructor or the method work for me.
   
   Perhaps we could change the constructor to the method above @tweise? I think 
we should have reached consensus then :)

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


With regards,
Apache Git Services

Reply via email to