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 AF0B8200B29 for ; Thu, 30 Jun 2016 23:19:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AD9FA160A52; Thu, 30 Jun 2016 21:19:15 +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 F36FC160A06 for ; Thu, 30 Jun 2016 23:19:14 +0200 (CEST) Received: (qmail 51070 invoked by uid 500); 30 Jun 2016 21:19:14 -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 51061 invoked by uid 99); 30 Jun 2016 21:19:14 -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; Thu, 30 Jun 2016 21:19:14 +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 C94F5C0C01 for ; Thu, 30 Jun 2016 21:19:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.307 X-Spam-Level: X-Spam-Status: No, score=-5.307 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=-1.287] autolearn=disabled Received: from mx2-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 WcmY_rahbwFR for ; Thu, 30 Jun 2016 21:19:11 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id EEB2A5F572 for ; Thu, 30 Jun 2016 21:19:10 +0000 (UTC) Received: (qmail 50907 invoked by uid 99); 30 Jun 2016 21:19:10 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2016 21:19:10 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 242A82C02A3 for ; Thu, 30 Jun 2016 21:19:10 +0000 (UTC) Date: Thu, 30 Jun 2016 21:19:10 +0000 (UTC) From: "Jeremiah Lowin (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AIRFLOW-100) Add flexibility to ExternalTaskSensor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Jun 2016 21:19:15 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremiah Lowin updated AIRFLOW-100: ----------------------------------- External issue URL: https://github.com/apache/incubator-airflow/pull/1641 > Add flexibility to ExternalTaskSensor > ------------------------------------- > > Key: AIRFLOW-100 > URL: https://issues.apache.org/jira/browse/AIRFLOW-100 > Project: Apache Airflow > Issue Type: Improvement > Components: operators > Reporter: Jeremiah Lowin > Assignee: Jeremiah Lowin > Priority: Minor > Labels: operator > > The ExternalTaskSensor defaults to sensing tasks with the same {{execution_date}} as it does, and has an {{execution_delta}} parameter for looking back farther in time. However, this doesn't support the case where the sensing task has a smaller schedule_interval than the target task. > For example, if the ETS were run every hour, one couldn't use a fixed {{execution_delta}} to sense a task that only ran daily (since each instance of the ETS would need a different execution_delta). > However, a Daily task can wait for multiple hourly tasks, because it knows in advance that it needs 24 ETS's with deltas == range(24). > Concrete suggestion: > - add a param ({{execution_delta_fn}}?) that takes in the current execution_date and is expected to return the desired sense date (for example, it could always return midnight of the previous day, no matter what the ETS was executed). > cc [~criccomini] -- This message was sent by Atlassian JIRA (v6.3.4#6332)