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 93C97200C85 for ; Tue, 16 May 2017 07:14:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 926D0160BD0; Tue, 16 May 2017 05:14:10 +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 D9342160BC2 for ; Tue, 16 May 2017 07:14:09 +0200 (CEST) Received: (qmail 41076 invoked by uid 500); 16 May 2017 05:14:09 -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 41064 invoked by uid 99); 16 May 2017 05:14:09 -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, 16 May 2017 05:14:09 +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 852FAC03BD for ; Tue, 16 May 2017 05:14:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 5itndo7CLKr1 for ; Tue, 16 May 2017 05:14:07 +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 EE2045F343 for ; Tue, 16 May 2017 05:14:06 +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 2449CE0D5F for ; Tue, 16 May 2017 05:14:06 +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 AD7302437C for ; Tue, 16 May 2017 05:14:04 +0000 (UTC) Date: Tue, 16 May 2017 05:14:04 +0000 (UTC) From: "Christian Rodriguez (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (AIRFLOW-137) Airflow does not respect 'max_active_runs' when task from multiple dag runs cleared MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 16 May 2017 05:14:10 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16011750#comment-16011750 ] Christian Rodriguez edited comment on AIRFLOW-137 at 5/16/17 5:13 AM: ---------------------------------------------------------------------- This is still an issue for backfill in 1.8.1 regardless of whether max_active_runs is set in airflow.cfg or the DAG definition. As Tomasz said, limiting with concurrency works, but causes strange scheduling behavior including hangs. I think this is more than just a minor issue tbh... was (Author: mrchrisrodriguez): This is still an issue for backfill regardless of whether max_active_runs is set in airflow.cfg or the DAG definition. As Tomasz said, limiting with concurrency works, but causes strange scheduling behavior including hangs. I think this is more than just a minor issue tbh... > Airflow does not respect 'max_active_runs' when task from multiple dag runs cleared > ----------------------------------------------------------------------------------- > > Key: AIRFLOW-137 > URL: https://issues.apache.org/jira/browse/AIRFLOW-137 > Project: Apache Airflow > Issue Type: Bug > Reporter: Tomasz Bartczak > Priority: Minor > > Also requested at https://github.com/apache/incubator-airflow/issues/1442 > Dear Airflow Maintainers, > Environment > Before I tell you about my issue, let me describe my Airflow environment: > Please fill out any appropriate fields: > Airflow version: 1.7.0 > Airflow components: webserver, mysql, scheduler with celery executor > Python Version: 2.7.6 > Operating System: Linux Ubuntu 3.19.0-26-generic Scheduler runs with --num-runs and get restarted around every minute or so > Description of Issue > Now that you know a little about me, let me tell you about the issue I am having: > What did you expect to happen? > After running 'airflow clear -t spark_final_observations2csv -s 2016-04-07T01:00:00 -e 2016-04-11T01:00:00 MODELLING_V6' I expected that this task gets executed in all dag-runs in specified by given time-range - respecting 'max_active_runs' > Dag configuration: > concurrency= 3, > max_active_runs = 2, > What happened instead? > Airflow at first started executing 3 of those tasks, which already violates 'max_active_runs', but it looks like 'concurrency' was the applied limit here. > 3_running_2_pending > After first task was done - airflow scheduled all other tasks, making it 5 running dags at the same time that violates all specified limit. > In the GUI we saw red warning (5/2 Dags running ;-) ) > Reproducing the Issue > max_active_runs is respected in a day-to-day basis - when of the tasks was stuck - airflow didn't start more than 2 dags concurrently. > [screenshots in the original issue: https://github.com/apache/incubator-airflow/issues/1442] -- This message was sent by Atlassian JIRA (v6.3.15#6346)