Skip to content

Creating backfill for a dag is affecting other dags too #50527

@atul-astronomer

Description

@atul-astronomer

Apache Airflow version

main (development)

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

No response

What happened?

When user is creating a backfill for any specific dag existing dagruns, backfill for other dags are getting created if dagruns are present for same duration.

Backfill is created for duration 5th May to 7th May
Image

Similar backfill is created for other dags too
Image

What you think should happen instead?

No response

How to reproduce

  1. Have some dags where a few past dagruns are present.
  2. Create backfill for any dag for existing dagruns.
  3. Notice backfill is created for other dags too where dagruns were present for the same backfill duration.

Example DAG:

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, 5, 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

affected_version:3.0Issues Reported for 3.0area:backfillSpecifically for backfill relatedarea:corekind:bugThis is a clearly a bugpriority:highHigh priority bug that should be patched quickly but does not require immediate new release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions