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 A5A27200C63 for ; Thu, 11 May 2017 14:54:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A4582160BC7; Thu, 11 May 2017 12:54: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 EA18D160BB2 for ; Thu, 11 May 2017 14:54:52 +0200 (CEST) Received: (qmail 52698 invoked by uid 500); 11 May 2017 12:54:52 -0000 Mailing-List: contact dev-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 dev@airflow.incubator.apache.org Received: (qmail 52685 invoked by uid 99); 11 May 2017 12:54:51 -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, 11 May 2017 12:54:51 +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 5760A1AFADA for ; Thu, 11 May 2017 12:54:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.09 X-Spam-Level: ** X-Spam-Status: No, score=2.09 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, KAM_HUGEIMGSRC=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hellofresh.com 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 c9n5aekq24cq for ; Thu, 11 May 2017 12:54:47 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B2D815F642 for ; Thu, 11 May 2017 12:54:46 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id m123so35085265wma.0 for ; Thu, 11 May 2017 05:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hellofresh.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=rP7JDKhwe8YrTr3BDQb7sJ+K47bz7BLfhRNf5oJls6Q=; b=dILTK5Y0V2AqyMrk364ZrmbnTGPT0UsWNGcMzryUMBlgHKuFzPsuS61i1UE5yc1C3b 5icJMVlkZKK0w8j8iNI8ahXJGMYLnUdX23wSBjtrKqtby9RH5FHjdeXIbJjyMm2/575/ w/K2TeyYUWbHcjTAGu17dqe+fKITl4iD+/sKgtlGkyFcIvv7wflMMSlzCij+zvy7sWbn d6KP2OgYVLWwK5kbl66LnQgmji7gh4LI/uD9sQmb5wx0hOQ1S06GSFdxjwOvTBKIDWRc Me20gM8pLRYcv+P17jRucxF7cbO+XvkBNWGqR7U/heq2E8y1ffi1QrZYVUFJDdf/wRwX YOXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rP7JDKhwe8YrTr3BDQb7sJ+K47bz7BLfhRNf5oJls6Q=; b=SqSZQWvfCsrgoe7Whc02cm479q1yaq3+w/5gCfdmebMVYOuRCI5IMlmP+qlylNPfbQ jga33lyFxsG32KmJmZpyJ+gPIOC8MJLe7lHqksq2Dhpq6ID/IWbvFDe997Ad6ya3MA+R c/4nOjqTRsz86PUanqhM6sNhpvUKg0trHwu5uGh9/DVD4tp07vQhkievDv/URjy+josH 7qxPtNdzxnmwkxovu3XCH6GH6S2wGzLIlOTlgZDgup8NnIKK7ymfVX3twdLGo6Qi8o2v +Y4uwEEII+gsJWfMuvxodm2qiR5F5TojUpi7s4eTHzE1C2DIhTbjRXNFbzHKOb8bJ/2G 3/kA== X-Gm-Message-State: AODbwcBdc0QZCQeB/iTzYD3TVb/o8Tl5+6Rt/EFCBLSLNbWlCe/A5GCJ w6cn9nhuTYMNBJOP1iORCuepI0+pBAfTMguhs48EPPFealFi51ZKlNq6moRQwlzcs8/WxjHJag4 uVmufQ+/YfJkn7r1TartbGSeabXeipanvTLQ= X-Received: by 10.28.183.8 with SMTP id h8mr800323wmf.54.1494507286193; Thu, 11 May 2017 05:54:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.150.24 with HTTP; Thu, 11 May 2017 05:54:05 -0700 (PDT) From: David Batista Date: Thu, 11 May 2017 14:54:05 +0200 Message-ID: Subject: Halt other DAGs until a certain DAG has completed To: dev@airflow.incubator.apache.org Content-Type: multipart/alternative; boundary="001a1148f920e882ab054f3f1743" archived-at: Thu, 11 May 2017 12:54:53 -0000 --001a1148f920e882ab054f3f1743 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi everyone, I asked a similar question before, but I thought about rephrasing/detailing it with an example, maybe someone else has this issue: Let's say I have DAG_1 running and for some reason (e.g.: due to failing and re-tries, took some more time due to huge amounts of data, etc.) Airflow triggers DAG_2 because the time that matches the crontab for DAG_2 was reached. What happens now, is that Airflow will start running tasks from bot DAG_1 and DAG_2. In a scenario where there are limited resources, I would like to put all tasks on DAG_2 on hold until DAG_1 finishes completely. I know that one way to do this is to have an External Sensor on DAG_2 poking for the success of DAG_1. But, is there a way to tell Airflow, that even if the time reached to run other DAGs, if a specific DAG still has not complete put everything else on hold? Cheers, David --=20 [image: logo] =20 =20 =20 *HelloFresh App =E2=80=93Download Now!*=20 *We're active in:*=20 US | DE=20 | =20 UK=20 =20 | NL=20 | =20 AU=20 | BE=20 | =20 AT =20 | CH=20 |=20 CA =20 www.HelloFreshGroup.com=20 =20 We are hiring around the world =E2=80=93 Click here to join us=20 --=20 HelloFresh SE, Berlin (Sitz der Gesellschaft) | Vorst=C3=A4nde: Dominik S.= =20 Richter (Vorsitzender), Thomas W. Griesel, Christian G=C3=A4rtner | Vorsitz= ender=20 des Aufsichtsrats: Jeffrey Lieberman | Eingetragen beim Amtsgericht=20 Charlottenburg, HRB 182382 B | USt-Id Nr.: DE 302210417 *CONFIDENTIALITY NOTICE:* This message (including any attachments) is=20 confidential and may be privileged. It may be read, copied and used only by= =20 the intended recipient. If you have received it in error please contact the= =20 sender (by return e-mail) immediately and delete this message. Any=20 unauthorized use or dissemination of this message in whole or in parts is= =20 strictly prohibited. --001a1148f920e882ab054f3f1743--