Skip to content

Move webserver config writing to main#32766

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:move-webserver-config-writing-to-main
Jul 23, 2023
Merged

Move webserver config writing to main#32766
potiuk merged 1 commit into
apache:mainfrom
potiuk:move-webserver-config-writing-to-main

Conversation

@potiuk

@potiuk potiuk commented Jul 22, 2023

Copy link
Copy Markdown
Member

So far configuration was automatically written no matter what command
has been invoked. This means tha webserver configuration is stored
for all components, where it was only really needed for webserver.

This small change moves the place where configuration writing is
invoked - webserver configuration will only be automatically
checked for and written when webserver command has been invoked
via main entrypoint.

This has also the nice side-effect that it is not written during
tests, or when airflow is just imported.


^ 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.

@potiuk
potiuk requested review from ashb and dstandish as code owners July 22, 2023 09:39
@potiuk
potiuk force-pushed the move-webserver-config-writing-to-main branch 6 times, most recently from aa5eb07 to 1901a57 Compare July 22, 2023 12:10
@potiuk
potiuk requested a review from o-nikolas July 22, 2023 12:11
@potiuk
potiuk force-pushed the move-webserver-config-writing-to-main branch from 1901a57 to c493a79 Compare July 22, 2023 15:49
So far configuration was automatically written no matter what command
has been invoked. This means tha webserver configuration is stored
for all components, where it was only really needed for webserver.

This small change moves the place where configuration writing is
invoked  - webserver configuration will only be automatically
checked for and written when webserver command has been invoked
via __main__ entrypoint.

This has also the nice side-effect that it is not written during
tests, or when airflow is just imported.
@potiuk
potiuk force-pushed the move-webserver-config-writing-to-main branch from c493a79 to b06f29f Compare July 22, 2023 19:40
@potiuk
potiuk merged commit 6362ba5 into apache:main Jul 23, 2023
@potiuk
potiuk deleted the move-webserver-config-writing-to-main branch July 23, 2023 06:26
potiuk added a commit to potiuk/airflow that referenced this pull request Jul 24, 2023
We are also using webserver config when we start worker and
in the future the internal-api server - which was not happening
after apache#32766.

This PR brings the webserver config back for those commands.
potiuk added a commit that referenced this pull request Jul 24, 2023
We are also using webserver config when we start worker and
in the future the internal-api server - which was not happening
after #32766.

This PR brings the webserver config back for those commands.
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI area:plugins area:providers area:Triggerer area:webserver Webserver related Issues provider:celery provider:cncf-kubernetes Kubernetes (k8s) provider related issues type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants