Skip to content

Comments

Wait for asset compilation to finish before starting airflow in Breeze#28575

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:wait-for-asset-compilation-in-start-airflow
Dec 24, 2022
Merged

Wait for asset compilation to finish before starting airflow in Breeze#28575
potiuk merged 1 commit intoapache:mainfrom
potiuk:wait-for-asset-compilation-in-start-airflow

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Dec 24, 2022

Asset compilation is performed in background and especially if it is run for the first time it might take some time. At the same time database intialization is done so usually it is not a problem but it some cases database might be initialized faster and webserver would start without assets compiled leading to nasty output.

This change adds waiting for the compilation - tmux will not split screens and run webserver before it is done.


^ 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 changed the title Wait for asset compilation to finish before start-airflow in Breeze Wait for asset compilation to finish before starting airflow in Breeze Dec 24, 2022
@potiuk potiuk force-pushed the wait-for-asset-compilation-in-start-airflow branch from 88a4e55 to 3f63325 Compare December 24, 2022 10:12
Asset compilation is performed in background and especially if it is run
for the first time it might take some time. At the same time database
intialization is done so usually it is not a problem but it some
cases database might be initialized faster and webserver would start
without assets compiled leading to nasty output.

This change adds waiting for the compilation - tmux will not
split screens and run webserver before it is done.
@potiuk potiuk force-pushed the wait-for-asset-compilation-in-start-airflow branch from 3f63325 to b375623 Compare December 24, 2022 11:14
@potiuk potiuk merged commit 979a72a into apache:main Dec 24, 2022
@potiuk potiuk deleted the wait-for-asset-compilation-in-start-airflow branch December 24, 2022 13:48
@pierrejeambrun
Copy link
Member

Nice! Thanks Jarek for the improvement :)

ephraimbuddy pushed a commit that referenced this pull request Jan 12, 2023
#28575)

Asset compilation is performed in background and especially if it is run
for the first time it might take some time. At the same time database
intialization is done so usually it is not a problem but it some
cases database might be initialized faster and webserver would start
without assets compiled leading to nasty output.

This change adds waiting for the compilation - tmux will not
split screens and run webserver before it is done.

(cherry picked from commit 979a72a)
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jan 13, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.5.1 milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants