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 E63AC200AEF for ; Sat, 14 May 2016 01:00:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E5199160A12; Fri, 13 May 2016 23:00:20 +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 3625816099F for ; Sat, 14 May 2016 01:00:20 +0200 (CEST) Received: (qmail 53287 invoked by uid 500); 13 May 2016 23:00:19 -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 53278 invoked by uid 99); 13 May 2016 23:00:19 -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; Fri, 13 May 2016 23:00:19 +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 E34F71A01ED for ; Fri, 13 May 2016 23:00:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 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=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DhEH5FmjWn4E for ; Fri, 13 May 2016 23:00:17 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 21FFF5F1D5 for ; Fri, 13 May 2016 23:00:15 +0000 (UTC) Received: (qmail 52594 invoked by uid 99); 13 May 2016 23:00:15 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2016 23:00:15 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 42A772C0451 for ; Fri, 13 May 2016 23:00:15 +0000 (UTC) Date: Fri, 13 May 2016 23:00:15 +0000 (UTC) From: "Chris Riccomini (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-113) DAG concurrency is not honored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 13 May 2016 23:00:21 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283273#comment-15283273 ] Chris Riccomini commented on AIRFLOW-113: ----------------------------------------- Also, I wonder if perhaps you want max_active_runs instead of concurrency? From [FAQ|https://pythonhosted.org/airflow/faq.html]: {quote} concurency defines how many running task instances a DAG is allowed to have, beyond which point things get queued {quote} Whereas: {quote} Is the max_active_runs parameter of your DAG reached? max_active_runs defines how many running concurrent instances of a DAG there are allowed to be. {quote} > DAG concurrency is not honored > ------------------------------ > > Key: AIRFLOW-113 > URL: https://issues.apache.org/jira/browse/AIRFLOW-113 > Project: Apache Airflow > Issue Type: Improvement > Components: celery, executor, scheduler > Affects Versions: Airflow 1.6.2 > Environment: Version of Airflow: 1.6.2 > Airflow configuration: Running a Scheduler with LocalExecutor or CeleryExecutor > Operating System: 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > Python Version: 2.7.6 > Reporter: Shenghu Yang > > This is reported in airflow github also: https://github.com/apache/incubator-airflow/issues/1424 > In our dag, we set the dag_args['concurrency'] = 8, however, when the scheduler starts to run, we can see this concurrency is not being honored, airflow scheduler will run up to num of the 'parallelism' (we set as 25) jobs. > What did you expect to happen? > dag_args['concurrency'] = 8 is honored, e.g. only run at most 8 jobs concurrently. > What happened instead? > when the dag starts to run, we can see the concurrency is not being honored, airflow scheduler will run up to the 'parallelism' (we set as 25) jobs. > Here is how you can reproduce this issue on your machine: > create a dag which contains nothing but 25 parallelized jobs. > set the dag dag_args['concurrency'] = 8 > set the airflow parallelism to 25 > then run: airflow scheduler > you will see all 25 jobs are scheduled to run, not 8. -- This message was sent by Atlassian JIRA (v6.3.4#6332)