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 33288200BA3 for ; Thu, 20 Oct 2016 22:14:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 31C41160AE0; Thu, 20 Oct 2016 20:14:03 +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 7819C160ACC for ; Thu, 20 Oct 2016 22:14:02 +0200 (CEST) Received: (qmail 59909 invoked by uid 500); 20 Oct 2016 20:14:01 -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 59900 invoked by uid 99); 20 Oct 2016 20:14:01 -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; Thu, 20 Oct 2016 20:14:01 +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 488D91A032B for ; Thu, 20 Oct 2016 20:14:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[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=-2.999] autolearn=disabled 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 ZChaRnb-__xq for ; Thu, 20 Oct 2016 20:14:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 3B0E05F59E for ; Thu, 20 Oct 2016 20:14:00 +0000 (UTC) Received: (qmail 59659 invoked by uid 99); 20 Oct 2016 20:13:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2016 20:13:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B001E2C0B04 for ; Thu, 20 Oct 2016 20:13:59 +0000 (UTC) Date: Thu, 20 Oct 2016 20:13:59 +0000 (UTC) From: "David (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AIRFLOW-584) Airflow Pool does not limit running tasks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Oct 2016 20:14:03 -0000 David created AIRFLOW-584: ----------------------------- Summary: Airflow Pool does not limit running tasks Key: AIRFLOW-584 URL: https://issues.apache.org/jira/browse/AIRFLOW-584 Project: Apache Airflow Issue Type: Bug Components: pools Affects Versions: Airflow 1.7.1.3 Environment: Ubuntu 14.04 Reporter: David Airflow pools are not limiting the number of running task instances for the following dag in 1.7.1.3 Steps to recreate: Create a pool of size 5 through the UI. The following dag has 52 tasks with increasing priority corresponding to the task number. There should only ever be 5 tasks running at a time however I observed 29 'used slots' in a pool with 5 slots {code} dag_name = 'pools_bug' default_args = { 'owner': 'airflow', 'depends_on_past': False, 'start_date': datetime(2016, 10, 20), 'email_on_failure': False, 'retries': 1 } dag = DAG(dag_name, default_args=default_args, schedule_interval="0 8 * * *") start = DummyOperator(task_id='start', dag=dag) end = DummyOperator(task_id='end', dag=dag) for i in range(50): sleep_command = 'sleep 10' task_name = 'task-{}'.format(i) op = BashOperator( task_id=task_name, bash_command=sleep_command, execution_timeout=timedelta(hours=4), priority_weight=i, pool=dag_name, dag=dag) start.set_downstream(op) end.set_upstream(op) {code} Relevant configurations from airflow.cfg: {code} # The amount of parallelism as a setting to the executor. This defines # the max number of task instances that should run simultaneously # on this airflow installation parallelism = 64 # The number of task instances allowed to run concurrently by the scheduler dag_concurrency = 64 # The maximum number of active DAG runs per DAG max_active_runs_per_dag = 1 {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)