Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8DEA3200B36 for ; Wed, 22 Jun 2016 00:03:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8C2F1160A63; Tue, 21 Jun 2016 22:03:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 05A9A160A4F for ; Wed, 22 Jun 2016 00:03:58 +0200 (CEST) Received: (qmail 8539 invoked by uid 500); 21 Jun 2016 22:03:58 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 8518 invoked by uid 99); 21 Jun 2016 22:03:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2016 22:03:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 17A092C14E1 for ; Tue, 21 Jun 2016 22:03:58 +0000 (UTC) Date: Tue, 21 Jun 2016 22:03:58 +0000 (UTC) From: "Gyula Fora (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-2313) Change Streaming Driver Execution Model MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Jun 2016 22:03:59 -0000 [ https://issues.apache.org/jira/browse/FLINK-2313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15342845#comment-15342845 ] Gyula Fora commented on FLINK-2313: ----------------------------------- Btw, do you have any thoughts on how should this behave in case of job failures/restarts etc? This is also related to Robert's question regarding the job id. > Change Streaming Driver Execution Model > --------------------------------------- > > Key: FLINK-2313 > URL: https://issues.apache.org/jira/browse/FLINK-2313 > Project: Flink > Issue Type: Improvement > Components: Streaming > Reporter: Stephan Ewen > > I would propose the following change to the Streaming Execution Environment: > When calling {{env.execute()}}, it does not block, but return an {{ExecutionContext}} object. This execution context has various methods, that allow you to control the execution: > - waitFor() -> Blocks until the job terminates, or the connection to the JobManager is lost. > - stop() -> initiates a clean stop > - cancel() -> cancels the program > - setParallelism() -> Later: adjusts the parallelism of the program > If this is voted as desirable, I would make a design how to do this... -- This message was sent by Atlassian JIRA (v6.3.4#6332)