Replies: 1 comment
-
I think this is a discussion that should end up in the devlist eventually - but likely something @uranusjr and @cmarteepants should be involved with first as they are working on AIP-73 for Airflow 3 https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-73+Expanded+Data+Awareness |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Triggering a DAG with Params and Dataset Events are very similar. Before data-aware scheduling was introduce, you could mix Params,
schedule=None
, and the REST API to do this.Today, although you can theoretically use both, they are very awkward to use together as you need to define a dedicated task that dispatches/picks the right source of input and parse out the Params dictionary or the Dataset Event's extra payload.
Now, as it's design now there aren't many use cases where you should use both (outside of migrating between the two). However I feel like replacing Params in favor of data-aware schedule, you're losing out a lot of features:
POST /datasets/events
My only suggestion is to to mirror the features of of Airflow Params which you're able to define some schema for the payload. Then a UI change to allow defining the dataset event after clicking the "Play button".
With this I think it makes using both data-aware and Airflow Params together obsolete as you can do both data-aware and manual triggering.
Beta Was this translation helpful? Give feedback.
All reactions