-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add migration waiting script and log cleaner #8219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
85a85ed to
a8c8950
Compare
a8c8950 to
ab7faa8
Compare
2fae38d to
35a8d8f
Compare
9a8290c to
c0d2191
Compare
|
@ashb changing that "and v" in the argument parsing broke a lot of things in non-trivial ways. I think if we want to fix how we parse commands that should be its own ticket. |
4fbd7f5 to
8a08498
Compare
Codecov Report
@@ Coverage Diff @@
## master #8219 +/- ##
===========================================
- Coverage 88.43% 33.45% -54.99%
===========================================
Files 940 940
Lines 45354 45381 +27
===========================================
- Hits 40109 15182 -24927
- Misses 5245 30199 +24954
Continue to review full report at Codecov.
|
58743e0 to
56d50dc
Compare
470a097 to
07203d9
Compare
This PR creates a "migration spinner" that allows the webserver to wait for all database migrations to complete before starting up. Is a necessary component before we can merge the helm chart.
07203d9 to
797d737
Compare
Co-Authored-By: Tomek Urbaszek <[email protected]>
In apache#8219 we noticed that we couldn't set a `default=0` because of the `and v` check. The "add_argument" function in python avoid this by using **kwargs, but we want type checking so can't directly use the same there. This uses the same pattern that configparser does to allow falsey (0, False) and even `None` as valid values, distinct from not being passed.
In #8219 we noticed that we couldn't set a `default=0` because of the `and v` check. The "add_argument" function in python avoid this by using **kwargs, but we want type checking so can't directly use the same there. This uses the same pattern that configparser does to allow falsey (0, False) and even `None` as valid values, distinct from not being passed.
It wasn't added until apache#8219, which isn't yet in any release. This approach is VERY not pretty, but if we want to support Airflow 1.10.10, and not require any changes or external binary in the image, then this is the only thing I can think of (For instance, we could say "pip install https://github.com/astronomer/astronomer-airflow-scripts" if you want to use this on <1.10.11)
This PR creates a "migration spinner" that allows the webserver to wait for all database migrations to complete before starting up. Is a necessary component before we can merge the helm chart.
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, 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 UPDATING.md.
Read the Pull Request Guidelines for more information.