Skip to content

Datasets - trigger DAG run when any dataset is updated #34534

Closed

Description

@westonplatter

Description

On this doc page, Airflow explicitly says all datasets need to be updated before a DAG runs is triggered.

When using datasets, in this first release (v2.4) waiting for all datasets in the list to be updated is the only option when multiple datasets are consumed by a DAG. A later release may introduce more fine-grained options allowing for greater flexibility.

I would like to see the schedule param logic configurable so that all or any dataset being updated triggers a DAG run.

Use case/motivation

Configurable so that a DAG run is triggered when either all or any dataset is updated.

To keep the API consistent, code changes would keep all as the default functionality.

Related issues

Tangential, but not directly related

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Sep 21, 2023
  2. boring-cyborg commented on Sep 21, 2023

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  3. Amar1404 commented on Sep 22, 2023

    @Amar1404

    I think so We need it partial Aware Scheduling here. Let say we are dependent on 3 dataset.
    Let say we update each dataset every hour. And we want one dataset should be partial dataset. Like lets say it was updated last if updated upto 6 hours ago then it is fine go ahead and trigger the dag. Otherwise some callback.

    It will be a great feature

  4. added and removed
    needs-triage
    on Sep 25, 2023
  5. yermalov-here commented on Sep 26, 2023

    @yermalov-here
    Contributor

    (in case it helps) Directly related:
    closed PR - #28333
    discussion - #28253

  6. dstandish commented on Jan 25, 2024

    @dstandish
    Contributor

    @sunank200 and I are working on this right now actually

  7. harveymarshall commented on Feb 21, 2024

    @harveymarshall

    @dstandish has there been on movement on this issue? I will be following closely.

  8. gabrielrmn commented on Mar 1, 2024

    @gabrielrmn

    any updates here?
    looking forward for this improvement!

  9. dstandish commented on Mar 1, 2024

    @dstandish
    Contributor

    Yes there's a number of PRs that have been merged for this but this is the one that show you the syntax #37101

  10. added
    area:data-aware-scheduling
    and removed on Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:data-aware-schedulingarea:schedulerkind:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions