Set execution api url in breeze config environment#49753
Set execution api url in breeze config environment#49753gopidesupavan merged 2 commits intoapache:mainfrom
Conversation
|
I think the default url is removed? |
|
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/") |
There was a problem hiding this comment.
Why did we need to set this? This is the default
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Can we update default base_url with value?
There was a problem hiding this comment.
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?
* Set execution api url in breeze config environment * Set execution api url from breeze shell params
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.
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.
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.
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.
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.
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)
* Set execution api url in breeze config environment * Set execution api url from breeze shell params
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.
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
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
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
^ 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.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.