-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIKE: Move Macros to Task SDK #45440
Comments
Some of the macros that did not have new dependencies have been ported in #45444 |
@kaxil @amoghrajesh While testing our regression DAG's with airflow main we see our DAG's are failing as macros are not implemented. Do we plan to get this done before airflow alpha's? More details here: https://astronomer.slack.com/archives/C01UJJEN0P3/p1738051755616179?thread_ts=1738051741.614759&cid=C01UJJEN0P3 |
As discussed with @kaxil |
Part of apache#45440 Built-in macros have been moved but the support to register a custom macro via plugin will be done as part of apache#45440. This PR moves `random`, `dateutil`, `yaml`, `datetime_diff_for_humans`, `ds_format_locale` to Python Task SDK. Backwards-compatibility has been maintained for now in `airflow.macros`.
#46867 should take care of existing/built-in macros and fix your test dag @vatsrahul1001 . However, user-defined macros, registered via Airflow Plugin (docs link), is still pending as part of this issue |
Make a plan for porting https://airflow.apache.org/docs/apache-airflow/stable/templates-ref.html#macros to Task SDK.
Macros are used in Jinja Templates and some of them are provided built-in and users can register some via Airflow Plugins: https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/plugins.html
The text was updated successfully, but these errors were encountered: