flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxm <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-1818] Added api to cancel job from clie...
Date Wed, 22 Jul 2015 17:36:53 GMT
Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/642#discussion_r35240453
  
    --- Diff: flink-clients/src/main/java/org/apache/flink/client/program/Client.java ---
    @@ -421,6 +426,50 @@ public JobSubmissionResult run(JobGraph jobGraph, boolean wait) throws
ProgramIn
     		}
     	}
     
    +	/**
    +	 * Executes the CANCEL action through Client API.
    +	 *
    +	 * @param Accepts job id and cancels the job
    +	 *
    +	 */
    +
    +
    +	public int cancel(JobID jobId) throws ProgramInvocationException {
    +		LOG.info("Executing 'cancel' command.");
    +		final FiniteDuration timeout = AkkaUtils.getTimeout(configuration);
    +		//String address = configuration.getString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY,
null);
    --- End diff --
    
    This comment can probably be removed.


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