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 970AF200B4B for ; Thu, 21 Jul 2016 19:43:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9590A160A73; Thu, 21 Jul 2016 17:43:38 +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 E07B5160A72 for ; Thu, 21 Jul 2016 19:43:37 +0200 (CEST) Received: (qmail 15332 invoked by uid 500); 21 Jul 2016 17:43:37 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 15323 invoked by uid 99); 21 Jul 2016 17:43:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2016 17:43:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A9681180457 for ; Thu, 21 Jul 2016 17:43:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kRD8z30bWJLF for ; Thu, 21 Jul 2016 17:43:34 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 6A10E60E35 for ; Thu, 21 Jul 2016 17:43:29 +0000 (UTC) Received: (qmail 12632 invoked by uid 99); 21 Jul 2016 17:43:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2016 17:43:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7D34DE2C1A; Thu, 21 Jul 2016 17:43:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davydov@apache.org To: commits@airflow.incubator.apache.org Message-Id: <272fce270e7f4944805e2327c813fe23@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-airflow git commit: [AIRFLOW-349] Add metric for number of zombies killed Date: Thu, 21 Jul 2016 17:43:28 +0000 (UTC) archived-at: Thu, 21 Jul 2016 17:43:38 -0000 Repository: incubator-airflow Updated Branches: refs/heads/master 00a591f7b -> b6e609824 [AIRFLOW-349] Add metric for number of zombies killed Closes #1673 from aoen/ddavydov/metric_for_number_of_zombies_killed Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/b6e60982 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/b6e60982 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/b6e60982 Branch: refs/heads/master Commit: b6e609824cb26bce1c9855f5d7e78a159ed03cc9 Parents: 00a591f Author: Dan Davydov Authored: Thu Jul 21 10:43:22 2016 -0700 Committer: Dan Davydov Committed: Thu Jul 21 10:43:22 2016 -0700 ---------------------------------------------------------------------- airflow/models.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/b6e60982/airflow/models.py ---------------------------------------------------------------------- diff --git a/airflow/models.py b/airflow/models.py index 1b61318..7193765 100644 --- a/airflow/models.py +++ b/airflow/models.py @@ -339,6 +339,7 @@ class DagBag(LoggingMixin): ti.handle_failure("{} killed as zombie".format(ti)) self.logger.info( 'Marked zombie job {} as failed'.format(ti)) + Stats.incr('zombies_killed') session.commit() def bag_dag(self, dag, parent_dag, root_dag):