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 77D91200C00 for ; Wed, 18 Jan 2017 07:25:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 76838160B3A; Wed, 18 Jan 2017 06:25:31 +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 BEF18160B44 for ; Wed, 18 Jan 2017 07:25:30 +0100 (CET) Received: (qmail 17406 invoked by uid 500); 18 Jan 2017 06:25:29 -0000 Mailing-List: contact dev-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.apache.org Delivered-To: mailing list dev@apex.apache.org Received: (qmail 17313 invoked by uid 99); 18 Jan 2017 06:25:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2017 06:25:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B8E121A061C for ; Wed, 18 Jan 2017 06:25:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.48 X-Spam-Level: X-Spam-Status: No, score=0.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id m7fEWB3QSxAl for ; Wed, 18 Jan 2017 06:25:26 +0000 (UTC) Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.161.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 592395FAF3 for ; Wed, 18 Jan 2017 06:25:26 +0000 (UTC) Received: by mail-yw0-f182.google.com with SMTP id l75so2285233ywb.0 for ; Tue, 17 Jan 2017 22:25:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=HOfB+4DOKJclEbVaBi8s5an3Ukq7krYfOZTLSIv5ris=; b=DexpSq89EilOmNiVKGL63jNt9C1Xgp6vnEbUDKzPVCpDKY22T6akcAP8Lo0OPM5+SV pfl958dED3+s+gYFS0zJAQ9pk6g7qKNp24d6GZBVhKAobEroHhsp+xYy8fTceDKTUDAP MzAlIhAC6nDAyvlGYXxqflWe77R+vXh/OMBKyVJu5JqBBUJ6S8jGbtO2Jq7gQYiZc/xS ZdV9VdkJGEw5d75ScqrHySNRA91OSs8UbYxLtK/+xRuxo9XS0o20qHbEHZipLugHBNeN Bf+y4M0OKa+Od25bITFrOloMz7/eXFef2KmrbxlX7Q6XqB4QccPJMsaunsTWPh8eJrGb j53g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=HOfB+4DOKJclEbVaBi8s5an3Ukq7krYfOZTLSIv5ris=; b=mQBJ5doyuYGn4r98wRyr/NQG4mbvei6FnDpst15rE7ZNerWjKuJZZqh7+O5SO+T775 XXocbwQKEpVT3gmAoXWDuAC/UbgtDChs0UqelEs9ktRiWcodttxC6EWKoOUEVXPJMep5 +B1jXOPSRtgOdTmcgwRm8DmklXPFmhfTjmaS6op7MtF7gIIuVWxHJLocJPgYbNFRBvlX lt63nAdu/3qT5vSe3CTDVsAqSGrnuh+JoWZZfY3KIK8umP0nzzb6hhl6NhRWYFp0u3V+ X7WCdF/Gb5z8clD0hxAReBICoP1Km1wXffWY5Vw56B0Vqt2Xi4Vh682lpMrejCIBKa9S yPMA== X-Gm-Message-State: AIkVDXLyl9ctrL3zwrgKyabh4VXHF3//Spr3szthCSQe4crocDmD91nwYICsVilh1SH3Ex/FDVuX0JELlY8hN5DD X-Received: by 10.129.156.11 with SMTP id t11mr1253780ywg.325.1484720723259; Tue, 17 Jan 2017 22:25:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.34.215 with HTTP; Tue, 17 Jan 2017 22:25:22 -0800 (PST) In-Reply-To: References: From: Tushar Gosavi Date: Wed, 18 Jan 2017 11:55:22 +0530 Message-ID: Subject: Re: Shutdown of an Apex app To: dev@apex.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Wed, 18 Jan 2017 06:25:31 -0000 I think this would be a great addition for batch use cases or use cases were DAG needs to be shutdown after detecting some completion/error condition through the operator. We have one Jira Opened for such functionality https://issues.apache.org/jira/browse/APEXCORE-503. - Tushar. On Wed, Jan 18, 2017 at 11:45 AM, Bhupesh Chawda wrote: > Hi All, > > Currently we can shutdown an Apex app in the following ways: > 1. Throw ShutdownException() from *all* the input operators > 2. Use Apex CLI to shutdown an app using the YARN App Id > > I think we should have some way of shutting down an application from within > an operator. It is not always true that the trigger for shutdown is sent by > the input operator only. Sometimes, an end condition may be detected by > some operator in the DAG which wants the processing to end. Such a > shutdown, although triggered from some intermediate operator in the DAG, > should guarantee graceful shut down of the application. > > Thoughts? > > ~ Bhupesh