Skip to content

Backfill with 'run_backwards' not showing correct order when triggered via UI #49397

@atul-astronomer

Description

@atul-astronomer

Apache Airflow version

3.0.0rc3

If "Other Airflow 2 version" selected, which one?

No response

What happened?

Screen.Recording.2025-04-17.at.4.18.52.PM.mov

What you think should happen instead?

No response

How to reproduce

  1. Have a dag which has past date runs.
  2. Trigger backfill via UI and select 'run backwards' checkbox.
  3. See in the network tab, payload has run_backwards value as false and on UI also backfill is done from start date to end date.
from datetime import datetime

from airflow.providers.standard.operators.bash import BashOperator
from airflow.sdk import DAG

dag = DAG(
    'test_api_dag',
    start_date=datetime(2025, 4, 1, 3, 28, 0),
    schedule='@daily',
    is_paused_upon_creation=False,
    catchup=True
)

hello_task = BashOperator(
    task_id='test_task',
    bash_command='echo "Hello World from Airflow!"',
    do_xcom_push = True,
    dag=dag,
)

hello_task

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

area:UIRelated to UI/UX. For Frontend Developers.area:backfillSpecifically for backfill relatedarea:corekind:bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions