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 7A10F200CE5 for ; Sun, 6 Aug 2017 14:16:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 76A0B16129C; Sun, 6 Aug 2017 12:16:08 +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 BC634160D04 for ; Sun, 6 Aug 2017 14:16:07 +0200 (CEST) Received: (qmail 31247 invoked by uid 500); 6 Aug 2017 12:16:07 -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 31238 invoked by uid 99); 6 Aug 2017 12:16:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Aug 2017 12:16:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7D8FAC004A for ; Sun, 6 Aug 2017 12:16:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Plhnuy0qtRUP for ; Sun, 6 Aug 2017 12:16:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 9570E5F520 for ; Sun, 6 Aug 2017 12:16:05 +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 213A4E0012 for ; Sun, 6 Aug 2017 12:16:05 +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 10BBC23FFD for ; Sun, 6 Aug 2017 12:16:03 +0000 (UTC) Date: Sun, 6 Aug 2017 12:16:03 +0000 (UTC) From: "Yati (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AIRFLOW-1488) Add a sensor operator to wait on DagRuns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 06 Aug 2017 12:16:08 -0000 Yati created AIRFLOW-1488: ----------------------------- Summary: Add a sensor operator to wait on DagRuns Key: AIRFLOW-1488 URL: https://issues.apache.org/jira/browse/AIRFLOW-1488 Project: Apache Airflow Issue Type: New Feature Components: contrib, operators Reporter: Yati Assignee: Yati The [ExternalTaskSensor|https://airflow.incubator.apache.org/code.html#airflow.operators.ExternalTaskSensor] operator already allows for encoding dependencies on tasks in external DAGs. However, when you have teams, each owning multiple small-to-medium sized DAGs, it is desirable to be able to wait on an external DagRun as a whole. This allows the owners of an upstream DAG to refactor their code freely by splitting/squashing task responsibilities, without worrying about dependent DAGs breaking. I'll now enumerate the easiest ways of achieving this that come to mind: * Make all DAGs always have a join DummyOperator in the end, with a task id that follows some convention, e.g., "{{ dag_id }}.__end__". * Make ExternalTaskSensor poke for a DagRun instead of TaskInstances when the external_task_id argument is None. * Implement a separate DagRunSensor operator. After considerations, we decided to implement a separate operator, which we've been using in the team for our workflows, and I think it would make a good addition to contrib. -- This message was sent by Atlassian JIRA (v6.4.14#64029)