flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sachingoel0101 <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-2797][cli] Add support for running jobs...
Date Thu, 05 Nov 2015 18:48:27 GMT
Github user sachingoel0101 commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1214#discussion_r44051406
  
    --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamContextEnvironment.java
---
    @@ -81,13 +60,15 @@ public JobExecutionResult execute(String jobName) throws Exception
{
     
     		transformations.clear();
     
    -		// execute the programs
    -		if (wait) {
    -			return client.runBlocking(streamGraph, jars, classpaths, userCodeClassLoader);
    +		if (ctx.isWait()) {
    +			return ctx.getClient().runBlocking(streamGraph, ctx.getJars(), ctx.getClasspaths(),
    +					ctx.getUserCodeClassLoader());
     		} else {
    -			JobSubmissionResult result = client.runDetached(streamGraph, jars, classpaths, userCodeClassLoader);
    +			ctx.setCurrentPlan(streamGraph);
    --- End diff --
    
    @mxm , fixed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message