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 08F0B200C22 for ; Tue, 21 Feb 2017 17:22:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 078F9160B68; Tue, 21 Feb 2017 16:22:53 +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 5252C160B3E for ; Tue, 21 Feb 2017 17:22:52 +0100 (CET) Received: (qmail 55047 invoked by uid 500); 21 Feb 2017 16:22:51 -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 55038 invoked by uid 99); 21 Feb 2017 16:22:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2017 16:22:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 27801C66B6 for ; Tue, 21 Feb 2017 16:22:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.799 X-Spam-Level: * X-Spam-Status: No, score=1.799 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GeLKEpumsSdH for ; Tue, 21 Feb 2017 16:22:50 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id EF9CA5FACA for ; Tue, 21 Feb 2017 16:22:49 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 87C5EE02F1 for ; Tue, 21 Feb 2017 16:22:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 28BB824123 for ; Tue, 21 Feb 2017 16:22:44 +0000 (UTC) Date: Tue, 21 Feb 2017 16:22:44 +0000 (UTC) From: "Kevin Yuen (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (AIRFLOW-513) ExternalTaskSensor tasks should not count towards parallelism limit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Feb 2017 16:22:53 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Yuen closed AIRFLOW-513. ------------------------------ Resolution: Not A Problem Gone with work around > ExternalTaskSensor tasks should not count towards parallelism limit > ------------------------------------------------------------------- > > Key: AIRFLOW-513 > URL: https://issues.apache.org/jira/browse/AIRFLOW-513 > Project: Apache Airflow > Issue Type: Improvement > Environment: Ubuntu 14.04 > Version 1.7.0 > Reporter: Kevin Yuen > > Hi, > We are using airflow version 1.7.0 and we are using `ExternalTaskSensor` pretty heavily to manage dependencies between our DAGs. > We have recently experienced a case where the external task sensors are causing the DAGs to go into limbo state because they took up all the execution slots defined via `AIRFLOW__CORE__PARALLELISM`. > For example: > Given we have 2 DAGs: > first one with 16 python operator tasks, and the other with 16 sensors. We set `PARALLELISM` to 16. > If the scheduler choses to schedule all 16 sensors first, the dag runs will never complete. > There are a couple of work around to this: > # staggering the DAGs so that the first dag with python operator runs first > # lowering the TaskSensor timeout thresholds and relying on retries > Both of these options seems less then ideal to us. We wonder if `ExternalTaskSensor` should really be counting towards the `PARALLELISM` limit? > Cheers, > Kevin -- This message was sent by Atlassian JIRA (v6.3.15#6346)