You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jeremiah Lowin (JIRA)" <ji...@apache.org> on 2016/06/30 21:19:10 UTC
[jira] [Updated] (AIRFLOW-100) Add flexibility to
ExternalTaskSensor
[ 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)