You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/05/25 08:52:00 UTC

[jira] [Commented] (AIRFLOW-3702) Reverse Backfilling(from current date to start date)

    [ https://issues.apache.org/jira/browse/AIRFLOW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17115852#comment-17115852 ] 

ASF GitHub Bot commented on AIRFLOW-3702:
-----------------------------------------

damnko commented on pull request #4676:
URL: https://github.com/apache/airflow/pull/4676#issuecomment-633459678


   Hi, can the `run_backwards` parameter be used when defining a DAG like so?
   ```python
   from airflow import DAG
   dag = DAG(
       dag_id = "..."
       scheduled_interval = "@daily"
       run_backwards = True
   )
   ```
   
   It seems to be something that can be used only manually through the Airflow cli but wanted to confirm. Is there any way to setup a DAG to run as backfilling job from the most recent DAG to the oldest?
   Thanks


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Reverse Backfilling(from current date to start date)
> ----------------------------------------------------
>
>                 Key: AIRFLOW-3702
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3702
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: configuration, DAG, models
>    Affects Versions: 1.10.1
>         Environment: MacOS High Sierra
> python2.7
> Airflow-1.10.1
>            Reporter: Shubham Gupta
>            Assignee: Dima Kamalov
>            Priority: Major
>              Labels: critical, improvement, priority
>             Fix For: 1.10.3
>
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> Hello,
> I think there is a need to have reverse backfilling option as well because recent jobs would take precedence over the historical jobs. We can come up with some variable in the DAG such as dagrun_order_default = True/False . This would help in many use cases, in which previous date pipeline does not depends on current pipeline.
> I saw this page which talks about this -> http://mail-archives.apache.org/mod_mbox/airflow-dev/201804.mbox/%3CCAPUwX3M7_qrn=1BqYSMkDV_ifjbTA6LBtq7CzHhEXSZmDJkDnw@mail.gmail.com%3E
> Thanks!
> Regards,
> Shubham



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