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 C3EE82009A8 for ; Tue, 17 May 2016 10:48:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C27E81609F5; Tue, 17 May 2016 08:48:18 +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 175D31609AE for ; Tue, 17 May 2016 10:48:17 +0200 (CEST) Received: (qmail 99185 invoked by uid 500); 17 May 2016 08:48:17 -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 99175 invoked by uid 99); 17 May 2016 08:48:17 -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; Tue, 17 May 2016 08:48:17 +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 EAD741A08FF for ; Tue, 17 May 2016 08:48:16 +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 j60lXZ9L3A6E for ; Tue, 17 May 2016 08:48:15 +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 2AE815F239 for ; Tue, 17 May 2016 08:48:14 +0000 (UTC) Received: (qmail 99076 invoked by uid 99); 17 May 2016 08:48:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 08:48:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CF4012C14F8 for ; Tue, 17 May 2016 08:48:12 +0000 (UTC) Date: Tue, 17 May 2016 08:48:12 +0000 (UTC) From: "Adrian Bridgett (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-78) airflow clear leaves dag_runs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 May 2016 08:48:19 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15286234#comment-15286234 ] Adrian Bridgett commented on AIRFLOW-78: ---------------------------------------- Sure (sorry for the delay). My understanding was that it "clears" it - so that it's as if it's never run. The scheduler then comes along and says "oh, I'd better run that then" and runs the DAG (or task if you've just cleared a task within a DAG). Back when I first used airflow I expected "run" to force-run a task but that didn't seem to happen (even with "force" selected) and the code matched that (I see that it should work now if the task isn't successful or force is set now). The specific issue I had here was to do with that max_active_runs setting - I think it must have stopped any task from running at all (I don't think that the case that we had _two_ runs simultaneously as it's unlikely I ran the clear when another run was running). The fact that I had to clear the dagrun seems to confirm this to me. > airflow clear leaves dag_runs > ----------------------------- > > Key: AIRFLOW-78 > URL: https://issues.apache.org/jira/browse/AIRFLOW-78 > Project: Apache Airflow > Issue Type: Wish > Components: cli > Affects Versions: Airflow 1.6.2 > Reporter: Adrian Bridgett > Assignee: Siddharth Anand > Priority: Minor > > (moved from https://github.com/apache/incubator-airflow/issues/829) > "airflow clear -c -d -s 2016-01-03 dagid" doesn't clear the dagrun, it sets it to running instead (apparently since this is often used to re-run jobs). > However this then breaks max_active_runs=1 (I have to stop the scheduler, then airflow clear, psql to delete the dagrun, then start the scheduler). > This problem was probably seen on an Airflow 1.6.x install. -- This message was sent by Atlassian JIRA (v6.3.4#6332)