t oo created AIRFLOW-6415:
-----------------------------

             Summary: 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


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)

Reply via email to