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 E2342200B96 for ; Thu, 22 Sep 2016 02:17:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E0C6A160ADE; Thu, 22 Sep 2016 00:17:33 +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 0B032160ADB for ; Thu, 22 Sep 2016 02:17:32 +0200 (CEST) Received: (qmail 24310 invoked by uid 500); 22 Sep 2016 00:17:32 -0000 Mailing-List: contact user-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@beam.incubator.apache.org Delivered-To: mailing list user@beam.incubator.apache.org Received: (qmail 24294 invoked by uid 99); 22 Sep 2016 00:17:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 00:17:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8EFA3C188E for ; Thu, 22 Sep 2016 00:17:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.228 X-Spam-Level: X-Spam-Status: No, score=-0.228 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5KyGloigo8NA for ; Thu, 22 Sep 2016 00:17:28 +0000 (UTC) Received: from nm23-vm2.bullet.mail.gq1.yahoo.com (nm23-vm2.bullet.mail.gq1.yahoo.com [98.136.217.81]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id AE3B55FDF1 for ; Thu, 22 Sep 2016 00:17:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1474503441; bh=tNF7c0NT5lWwqfIYl9lLQVgOwi0AgEsXu+eZ3hoKcV4=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=qBPb0Rc/7oGMA+/db7U/Gr8CFFLxMCysByqgrv41F9dE7MJgj+HG72tfeqTeLhr5inaCatvGWN+Zc/SF7NLHXJSF6zm0b7jwKjp/+UJYgomuXVL8WCm+Q/N1fo3rEL0DOGaTthLqXW6pd9vf8Cn5rxVFI9trHpd/0Aq+1S+ab3KZYt8Hb1TgfIzAsTrpecquifESkiQ5P38uA5tvjycu4gjNX5aplqIdvt0pDdH5wNR4hBFkDWehPpAgX+kkalr4hmk8nov+JW/XKky7KXTFHenCt2v+hSmNla7TGG0zlscZOosT0S8PbvekSqd6kLteV4yL8ZH6LeZj7MbN26a4Qg== Received: from [98.137.12.61] by nm23.bullet.mail.gq1.yahoo.com with NNFMP; 22 Sep 2016 00:17:21 -0000 Received: from [98.137.12.244] by tm6.bullet.mail.gq1.yahoo.com with NNFMP; 22 Sep 2016 00:17:21 -0000 Received: from [127.0.0.1] by omp1052.mail.gq1.yahoo.com with NNFMP; 22 Sep 2016 00:17:21 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 430354.81873.bm@omp1052.mail.gq1.yahoo.com X-YMail-OSG: MjyGrHMVM1mADymIOxLyjOhvrcXgW_lT0LCaIxnJa1Mn3CWISVxEW_wF18if08r XQI1lKEWfAUh8oacavQHicjPNbFWvbD8DzDwk28jLRR6PgLAtDC2pwgzVGMvqvGQw5uf3vt6s0Iw yh4K048aJCQTc1DxMXusrWI5ak7OgQkw51e6ZsggJS.QQSkUbEhrMUOao7yR2bZnb6i_PgkAdEYb pQi7LeMNFQ_1tUA0u4wafMHGHbwP3xC._otUAMNoGpLTwNnIspO8Ul.L3sGmVSjlxxF0qseGgt0O 1wDpAxA4ArgmvnYIvRskT9CLBQC962aJbFURp2s8mlGLkICSfHoyA4OpQBnW7JlBpGXUY3KyiZLN maizRNm37jAiRXF.aCz0_Y2JCnmanZm2c98tfY1y6MV2V5PXiF.VZfScXJsNfPE9GmVZPnj2tips LYQqICwxVwv8cpKAdU298zBKu8zludujbu_xh9e7emjcH99W1_rhqrRTPu7uQADUzIhnqXXDfIS2 WbmpVqAWQV1WYf17JSha_5Hg- Received: from jws10709.mail.gq1.yahoo.com by sendmailws101b.mail.gq1.yahoo.com; Thu, 22 Sep 2016 00:17:21 +0000; 1474503441.046 Date: Thu, 22 Sep 2016 00:16:18 +0000 (UTC) From: amir bahmanyari Reply-To: amir bahmanyari To: Eugene Kirpichov , "user@beam.incubator.apache.org" Message-ID: <992789268.3186606.1474503378929@mail.yahoo.com> In-Reply-To: References: <625857796.3188558.1474502608864.ref@mail.yahoo.com> <625857796.3188558.1474502608864@mail.yahoo.com> Subject: Re: Graceful termination of pipeline at runtime MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3186605_968382860.1474503378922" archived-at: Thu, 22 Sep 2016 00:17:34 -0000 ------=_Part_3186605_968382860.1474503378922 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Eugene...I see it in the package=C2=A0org.apache.beam.sdk.Ay code ex= ample on accurately using it pls?ThanksAmir- From: Eugene Kirpichov To: amir bahmanyari ; "user@beam.incubator.apache.org= " =20 Sent: Wednesday, September 21, 2016 5:07 PM Subject: Re: Graceful termination of pipeline at runtime =20 You need to use a non-blocking runner where p.run() returns immediately.It = returns a PipelineResult (https://github.com/apache/incubator-beam/blob/mas= ter/sdks/java/core/src/main/java/org/apache/beam/sdk/PipelineResult.java) w= hich provides cancel() and other operations. On Wed, Sep 21, 2016 at 5:03 PM amir bahmanyari wrote= : While still running [p.run()], is there a way to terminate a pipleline p.x = based on a condition for instance?I didnt see any related api like p.termin= ate() or similar...ThanksAmir- =20 ------=_Part_3186605_968382860.1474503378922 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Eugene...I see it = in the package org.apache.beam.sdk.
Ay code example on accurately using it = pls?
Thanks<= /div>
Amir-
<= div class=3D"qtdSeparateBR" id=3D"yui_3_16_0_1_1474346976124_196475">

From: Eugene Kirpichov <kirpichov@google.co= m>
To: amir bahmany= ari <amirtousa@yahoo.com>; "user@beam.incubator.apache.org" <user@= beam.incubator.apache.org>
Se= nt: Wednesday, September 21, 2016 5:07 PM
Subject: Re: Graceful termination of pipelin= e at runtime

You need to use a non-blocking runner where p.run() returns im= mediately.

On Wed, Sep 21, 2016 at 5= :03 PM amir bahmanyari <amirtousa@yahoo.com> w= rote:
While still running [p.run()], is there a way to terminate a piple= line p.x based on a condition for instance?
I didnt see any related api like p.terminate() or similar...
Thanks
Amir-


------=_Part_3186605_968382860.1474503378922--