You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "t oo (Jira)" <ji...@apache.org> on 2020/01/04 17:02:00 UTC

[jira] [Updated] (AIRFLOW-6415) get_task_instances() - don't look at 30 days of exec_dates

     [ https://issues.apache.org/jira/browse/AIRFLOW-6415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

t oo updated AIRFLOW-6415:
--------------------------
    Priority: Minor  (was: Major)

> get_task_instances() - don't look at 30 days of exec_dates
> ----------------------------------------------------------
>
>                 Key: AIRFLOW-6415
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6415
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: core, scheduler
>    Affects Versions: 1.10.7
>            Reporter: t oo
>            Priority: Minor
>
> For refactor:
> https://github.com/apache/airflow/blob/master/airflow/models/dag.py#L781 has start_date = (timezone.utcnow() - timedelta(30)).date()
> which then gets used in
> TaskInstance.execution_date >= start_date,
> from what I can tell it is only used by callback functions?
> If dagrun is passed into callback then exact execution_date is already known? 
> looks like it has existed since first commit 5 years ago:
> https://github.com/apache/airflow/blob/1047940ca4363b04044c4963b9c88f7632746407/core/models.py#L760



--
This message was sent by Atlassian Jira
(v8.3.4#803005)