[ https://issues.apache.org/jira/browse/FLINK-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14637251#comment-14637251 ]
ASF GitHub Bot commented on FLINK-1818: --------------------------------------- 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. > Provide API to cancel running job > --------------------------------- > > Key: FLINK-1818 > URL: https://issues.apache.org/jira/browse/FLINK-1818 > Project: Flink > Issue Type: Improvement > Components: Java API > Affects Versions: 0.9 > Reporter: Robert Metzger > Assignee: niraj rai > Labels: starter > > http://apache-flink-incubator-mailing-list-archive.1008284.n3.nabble.com/Canceling-a-Cluster-Job-from-Java-td4897.html -- This message was sent by Atlassian JIRA (v6.3.4#6332)