Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Dec 17, 2024

(Pulling this back in v2-10-test -- removed it while force-pushing due to other conflicts. Original PR: #44968)

This was initially added in response to #168. However, we now have ti.log_url that is used for that; example usages:

"Exception:<br>{{exception_html}}<br>"

<td><a href="{{ ti.log_url }}" style="text-decoration:underline;">{{ ti.log_url }}</a></td>

Log: <a href="{{ti.log_url}}">Link</a><br>

So, to simplify what we need to pass from API server to the Task SDK in preparation for Airflow 3, I want to simplify and remove things that aren't needed. In this case, this is good so we don't pass/expore secrets unnecesarily via conf. This is removed in Airflow 3 and deprecated in 2.10.x/2.11

Mailing list Thread: https://lists.apache.org/thread/2n0l8y2oyq4442p0lsnmbbcl6rmbj3k7


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

This was initially added in response to apache#168. However, we now have `ti.log_url` that is used for that; example usages:

https://github.com/apache/airflow/blob/dcd41f60f1c9b5583b49bfb49b6d85c640a2892c/airflow/models/taskinstance.py#L1362

https://github.com/apache/airflow/blob/dcd41f60f1c9b5583b49bfb49b6d85c640a2892c/providers/src/airflow/providers/smtp/notifications/templates/email.html#L28

https://github.com/apache/airflow/blob/dcd41f60f1c9b5583b49bfb49b6d85c640a2892c/docs/apache-airflow/howto/email-config.rst?plain=1#L76

So, to simplify what we need to pass from API server to the Task SDK in preparation for Airflow 3, I want to simplify and remove things that aren't needed. In this case, this is good so we don't pass/expore secrets unnecesarily via `conf`. This is removed in Airflow 3 and deprecated in 2.10.x/2.11

Mailing list Thread: https://lists.apache.org/thread/2n0l8y2oyq4442p0lsnmbbcl6rmbj3k7
@kaxil kaxil requested a review from potiuk as a code owner December 17, 2024 14:55
@kaxil kaxil added this to the Airflow 2.10.5 milestone Dec 17, 2024
@kaxil kaxil merged commit 0ad24cf into apache:v2-10-test Dec 17, 2024
48 checks passed
@kaxil kaxil deleted the deprecate-conf branch December 17, 2024 19:32
@utkarsharma2 utkarsharma2 added the type:doc-only Changelog: Doc Only label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants