Skip to content

"Backfill in progress" banner shows the first backfill instead of the active backfill #61811

Description

@roykoand

Apache Airflow version

3.1.7

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

No response

What happened?

If you execute multiple backfills for a single DAG, the "Backfill in progress" banner displays the wrong active backfill job. As shown in my screenshot, there are three backfills, and only the last one is active (it has no completed_at timestamp). However, the banner incorrectly shows the first backfill as active:
Image

I’m not a front-end expert, but after a quick look, I noticed the following logic:

<Time datetime={data?.backfills[0]?.from_date} /> - <Time datetime={data?.backfills[0]?.to_date} />

It seems like it might simply fetch the first backfill for a specific Dag from the backfill table instead of filtering for active backfills.

Thank you!

What you think should happen instead?

Backfill in progress banner should show an active backfill job, not the first one in a list of previous backfills

How to reproduce

  1. Start the backfill
  2. Wait for its completion
  3. Start the second backfill
  4. Notice that it shows the wrong active backfill in a "Backfill in progress" banner

Operating System

Debian GNU/Linux

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

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

No one assigned

    Labels

    area:backfillSpecifically for backfill relatedarea:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions