Skip to content

Conversation

@gopidesupavan
Copy link
Member


^ 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 airflow-core/newsfragments.

@gopidesupavan
Copy link
Member Author

I think the default url is removed?

@gopidesupavan gopidesupavan merged commit 72d391c into apache:main Apr 24, 2025
97 checks passed
@gopidesupavan gopidesupavan deleted the set-base-execution-api-url-breeze branch April 24, 2025 22:09
@potiuk
Copy link
Member

potiuk commented Apr 25, 2025

nice

_set_var(_env, "AIRFLOW__CELERY__BROKER_URL", self.airflow_celery_broker_url)
_set_var(_env, "AIRFLOW__CORE__AUTH_MANAGER", self.auth_manager_path)
_set_var(_env, "AIRFLOW__CORE__EXECUTOR", self.executor)
_set_var(_env, "AIRFLOW__CORE__EXECUTION_API_SERVER_URL", "http://localhost:8080/execution/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we need to set this? This is the default

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @kaxil

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default is removed #49747 , and the default base_url doesn't have any value in https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/config_templates/config.yml#L1294 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update default base_url with value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No -- if we set base_url then all sorts of things with the webserver get trickier -- we removed it from there for a reason.

@kaxil Perhaps we need to tweak 49747 to use base_url if it's an absolute URL, but default to localhost:8080 if it's relative?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR: #49782

prabhusneha pushed a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
* Set execution api url in breeze config environment

* Set execution api url from breeze shell params
kaxil added a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
Follow-up of apache#49747 which broke some workflows including `breeze start-airflow`, requiring apache#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache#49753) that occurred when base_url was
a relative path without protocol.
kaxil added a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
Follow-up of apache#49747 which broke some workflows including `breeze start-airflow`, requiring apache#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache#49753) that occurred when base_url was
a relative path without protocol.
kaxil added a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
Follow-up of apache#49747 which broke some workflows including `breeze start-airflow`, requiring apache#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache#49753) that occurred when base_url was
a relative path without protocol.
kaxil added a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
Follow-up of apache#49747 which broke some workflows including `breeze start-airflow`, requiring apache#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache#49753) that occurred when base_url was
a relative path without protocol.
kaxil added a commit that referenced this pull request Apr 25, 2025
Follow-up of #49747 which broke some workflows including `breeze start-airflow`, requiring #49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in #49753) that occurred when base_url was
a relative path without protocol.
kaxil added a commit that referenced this pull request Apr 25, 2025
Follow-up of #49747 which broke some workflows including `breeze start-airflow`, requiring #49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in #49753) that occurred when base_url was
a relative path without protocol.

(cherry picked from commit 3b9ae48)
jroachgolf84 pushed a commit to jroachgolf84/airflow that referenced this pull request Apr 30, 2025
* Set execution api url in breeze config environment

* Set execution api url from breeze shell params
jroachgolf84 pushed a commit to jroachgolf84/airflow that referenced this pull request Apr 30, 2025
Follow-up of apache#49747 which broke some workflows including `breeze start-airflow`, requiring apache#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache#49753) that occurred when base_url was
a relative path without protocol.
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 25, 2025
Follow-up of apache/airflow#49747 which broke some workflows including `breeze start-airflow`, requiring apache/airflow#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache/airflow#49753) that occurred when base_url was
a relative path without protocol.

(cherry picked from commit 3b9ae489a56cde7fe1cd663d7da88fabb831c664)

GitOrigin-RevId: 3eeb2533a425dd25ffeebd5e71306f048a12f38c
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 22, 2025
Follow-up of apache/airflow#49747 which broke some workflows including `breeze start-airflow`, requiring apache/airflow#49753.

When base_url is a relative path (starts with '/'), default to using
http://localhost:8080 as the base URL. This maintains backward compatibility
with the previous default behavior while still allowing custom absolute URLs
through either `base_url` or `execution_api_server_url` configuration.

Fixes `httpx.UnsupportedProtocol` error (as seen in apache/airflow#49753) that occurred when base_url was
a relative path without protocol.

GitOrigin-RevId: 3b9ae489a56cde7fe1cd663d7da88fabb831c664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants