You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jadu07 (via GitHub)" <gi...@apache.org> on 2026/03/19 20:54:31 UTC
[PR] Fix missing deprecation for execution_api_server_url mapping [airflow]
Jadu07 opened a new pull request, #63949:
URL: https://github.com/apache/airflow/pull/63949
When execution_api_server_url was moved from [workers] to [core], the transition lacked a backward-compatibility deprecation mapping in parser.py.
As a result, Airflow 3 SDK ignores user configurations still placed under [workers], falling back to an often unresolvable Default URL derived from api.base_url. This caused Task SDK pods to crash on startup with an httpcore.ConnectError and prevented the task's hostname from being properly reported, resulting in Invalid URL log fetch errors in the UI.
This commit adds execution_api_server_url to deprecated_options to restore proper fallback behavior.
<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->
<!--
Thank you for contributing!
Please provide above a brief description of the changes made in this pull request.
Write a good git commit message following this guide: http://chris.beams.io/posts/git-commit/
Please make sure that your code changes are covered with tests.
And in case of new features or big changes remember to adjust the documentation.
Feel free to ping (in general) for the review if you do not see reaction for a few days
(72 Hours is the minimum reaction time you can expect from volunteers) - we sometimes miss notifications.
In case of an existing issue, reference it using one of the following:
* closes: #63945
* related: #ISSUE
-->
closes: #63945
---
##### Was generative AI tooling used to co-author this PR?
<!--
If generative AI tooling has been used in the process of authoring this PR, please
change below checkbox to `[X]` followed by the name of the tool, uncomment the "Generated-by".
-->
- [x] Yes (please specify the tool below)
- Google DeepMind for verification of the changes made.
<!--
Generated-by: [Tool Name] following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
-->
---
* Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
* For fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed.
* When adding dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
* For significant user-facing changes create newsfragment: `{pr_number}.significant.rst`, in [airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments). You can add this file in a follow-up commit after the PR is created so you know the PR number.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix missing deprecation for execution_api_server_url mapping [airflow]
Posted by "Jadu07 (via GitHub)" <gi...@apache.org>.
Jadu07 commented on PR #63949:
URL: https://github.com/apache/airflow/pull/63949#issuecomment-4133643740
> it was there since 3.0.0. I'm not sure why it relates to #63945
Thank you for catching this! You are absolutely right that execution_api_server_url has been in [core] since 3.0.0.
However, because the deprecation mapping in parser.py was never added back then, any legacy configuration still pointing to [workers] is silently ignored, leading to the broken log symptoms reported in #63945.
I have amended the PR to use version 3.0 instead to accurately reflect this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix missing deprecation for execution_api_server_url mapping [airflow]
Posted by "Jadu07 (via GitHub)" <gi...@apache.org>.
Jadu07 commented on PR #63949:
URL: https://github.com/apache/airflow/pull/63949#issuecomment-4135027556
> > it was there since 3.0.0. I'm not sure why it relates to #63945
>
> So do I, deprecating the `[core/execution_api_server_url]` doesn't seem to help resolve #63945.
PR #46969 moved this from [workers] to [core] across multiple executors and the Helm chart, but missed this deprecation shim.
Without it, legacy [workers] configs are ignored, causing the ConnectError and the NULL hostname leading to the log fetch error in #63945.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix missing deprecation for execution_api_server_url mapping [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #63949:
URL: https://github.com/apache/airflow/pull/63949
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix missing deprecation for execution_api_server_url mapping [airflow]
Posted by "Jadu07 (via GitHub)" <gi...@apache.org>.
Jadu07 commented on PR #63949:
URL: https://github.com/apache/airflow/pull/63949#issuecomment-4106664648
Hello sir @eladkal, could you please review this PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix missing deprecation for execution_api_server_url mapping [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on PR #63949:
URL: https://github.com/apache/airflow/pull/63949#issuecomment-4133288006
it was there since 3.0.0. I'm not sure why it relates to https://github.com/apache/airflow/issues/63945
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix missing deprecation for execution_api_server_url mapping [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on PR #63949:
URL: https://github.com/apache/airflow/pull/63949#issuecomment-4161463830
Could you help clarify why we should support this? Airflow 2 to 3 may be one of the limited opportunities we have to remove elements we don’t intend to keep.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org