You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Datasets - trigger DAG run when any dataset is updated #34534
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.
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.
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.
Activity
boring-cyborg commentedon Sep 21, 2023
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.
Amar1404 commentedon Sep 22, 2023
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
yermalov-here commentedon Sep 26, 2023
(in case it helps) Directly related:
closed PR - #28333
discussion - #28253
dstandish commentedon Jan 25, 2024
@sunank200 and I are working on this right now actually
harveymarshall commentedon Feb 21, 2024
@dstandish has there been on movement on this issue? I will be following closely.
gabrielrmn commentedon Mar 1, 2024
any updates here?
looking forward for this improvement!
dstandish commentedon Mar 1, 2024
Yes there's a number of PRs that have been merged for this but this is the one that show you the syntax #37101
jscheffl commentedon Jul 25, 2024
This feature is available since Airflow 2.9, see https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/datasets.html#logical-operators-for-datasets