Skip to content

[Filters] Add filtering support to Search – DAG Runs #53043

Description

@cmarteepants

View

Search – DAG Runs

Image

Filters to Add

  • Filter by DAG ID

    ↪ Useful when triaging DAGs across environments or viewing all runs for a specific DAG without switching views

  • Filter by Run ID
    ↪ Useful for debugging across views and linking from external systems or audit logs

  • Filter by Start Date
    ↪ Helps find DAG runs that started within a specific time window (e.g., peak load periods)

  • Filter by End Date
    ↪ Useful for spotting recently completed runs or identifying DAGs that finished during outages or incidents

  • Filter by Duration Range
    ↪ Identify slow or long-running DAGs to tune performance or spot issues with stuck tasks

  • Filter by DAG Version and/or Bundle Version
    ↪ Correlate failures or behavioral changes with code changes over time

  • Filter by Conf Content
    ↪ Search for runs where conf contains specific keys or values (e.g., for dynamic configuration or user-specific logic)

  • Filter by Triggered By
    ↪ Distinguish manual runs, asset-triggered runs, CLI-triggered runs, or other automated triggers; important in hybrid scheduling

  • Filter by Producing Asset
    ↪ Show runs created as a result of an upstream asset event, useful for event-driven DAGs and lineage debugging

  • Filter by **Logical Date ** or Run After (Range)
    ↪ Logical Date is the canonical “execution date” and is often used for backfill or partitioned logic; “Run After” helps with when something is scheduled to run, independent of the logical date

API Support

⚠️ Partial

Would require API enhancements to support full filter set.

UI Impact

  • Filters should appear at top of the Search – DAG Runs screen
  • Should use consistent UX patterns (e.g., date range pickers, tag-like selectors)

Activity

  1. added
    kind:metaHigh-level information important to the community
    on Jul 8, 2025
  2. removed theissue type on Jul 8, 2025
  3. changed the title [-][Filters] Add filtering support to DAG Runs View (Search – DAG Runs)[/-] [+][Filters] Add filtering support to Search – DAG Runs[/+] on Jul 8, 2025
  4. removed
    kind:metaHigh-level information important to the community
    on Jul 8, 2025
  5. babyitachi commented on Jul 30, 2025

    @babyitachi

    I would like to work on this

  6. pierrejeambrun commented on Jul 31, 2025

    @pierrejeambrun
    Member

    Go head @babyitachi, you're assigned

  7. vatsrahul1001 commented on Aug 11, 2025

    @vatsrahul1001
    Contributor

    @babyitachi , how are we progressing on this?

  8. babyitachi commented on Aug 12, 2025

    @babyitachi

    Hey @vatsrahul1001, I could not proceed with this one with the pace I wanted to. Give me till weekend, I'll post an update. Thanks!

  9. rawwar commented on Aug 23, 2025

    @rawwar
    Contributor

    @babyitachi , do you have an update?

    I'm assigning myself to this to help with the API part. It would be great if you could help with the UI part of the issue.

    Edit: I'm also looking into the UI part, just in case @babyitachi can't finish this one.

  10. self-assigned this
    on Aug 23, 2025
  11. rawwar commented on Aug 23, 2025

    @rawwar
    Contributor

    I'm not sure if we should support Duration range. We don't have this data readily available and DagRun needs to be computed on the go. Also, our search filters are currently triggered by change in the field. If someone wants to type "523" seconds. I am not sure if its going to hit queries for 5 and then 52 and then 523 by the time user completes typing into the search box. And, that I think is going to be compute intensive on DB. Maybe not too much when user is already on a Dag Page. As we do filter by Dag Id. But, if on the page Dags-> DagRuns, its going to run this on all of the data in DagRun table.

    If my concern sounds legit, we can update DagRun Model to have duration column(its currently a hybrid property). Then have duration_<lte|lt|gte|gt> params

  12. pierrejeambrun commented on Sep 2, 2025

    @pierrejeambrun
    Member

    If someone wants to type "523" seconds. I am not sure if its going to hit queries for 5 and then 52 and then 523 by the time user completes typing into the search box. And, that I think is going to be compute intensive on DB.

    That part is handled by a debounce for the search box, and we should probably do the same for other inputs that might be query sensitive.

    data readily available and DagRun needs to be computed on the go

    We already have a hybrid_property for that. We should be able to query and filter transparently on that virtual column. Yes the computation will add to the query time but it's a simple one and we shouldn't notice it.(I would say, it's worth to give it a try and see how much that adds up on a table with a fair number of dag runs. >10k maybe more).

  13. removed their assignment
    on Sep 16, 2025
  14. RoyLee1224 commented on Sep 16, 2025

    @RoyLee1224
    Contributor

    More than happy to create a new PR carrying this forward. I will link the new one here shortly. 💪

  15. dheerajturaga commented on Sep 18, 2025

    @dheerajturaga
    Member

    Ah! I wasn't aware folks were already working on this. Some of the AIs here I have already implemented (and merged)
    see: #55691 , #55648 , #53652

  16. pierrejeambrun commented on Sep 18, 2025

    @pierrejeambrun
    Member

    Ah! I wasn't aware folks were already working on this. Some of the AIs here I have already implemented (and merged)
    see: #55691 , #55648 , #53652

    Thanks for that. I have updated the ticket. (filters for triggering_user_name_pattern, and hyperlinks are nice addition but were not part of this ticket, so we're fine)

  17. pierrejeambrun commented on Sep 30, 2025

    @pierrejeambrun
    Member

    Closed by #55735

  18. pierrejeambrun commented on Sep 30, 2025

    @pierrejeambrun
    Member

    Special remaining items such as consuming or producing assets can come later as follow up improvement, those are more efforts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions