-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[AIRFLOW-XXXX] Expose SQLAlchemy's connect_args and make it configurable #6478
Conversation
65f0079
to
35a5a14
Compare
This can already be done using Do you have any use case for this? |
@kaxil user can not pass in a dict in connection string, which is needed if we want to set |
Can you add your reply to Kaxil as a comment in the code for posterity? I think we may want a test for this too. It would show how to use it, plus of course add test coverage : ). airflow/tests/test_logging_config.py is an example of how to do this. |
Agree with Dan |
35a5a14
to
d3f2302
Compare
ok, I updated description in default_airflow.cfg and added some simple unit test cases. Let me know if they are enough :) |
8f53d84
to
7bd17b8
Compare
7bd17b8
to
b7994e6
Compare
Lint issues fixed! I did run |
e9d5765
to
813f182
Compare
In many use cases users need to configure SQLAlchemy's connect_args (e.g. pass ssl.check_hostname=False to PyMySQL), and Airflow should expose this option and make it configurable.
813f182
to
10c0829
Compare
Codecov Report
@@ Coverage Diff @@
## master #6478 +/- ##
==========================================
- Coverage 83.95% 83.64% -0.31%
==========================================
Files 635 635
Lines 36657 36661 +4
==========================================
- Hits 30774 30666 -108
- Misses 5883 5995 +112
Continue to review full report at Codecov.
|
LGTM |
Is this feature available on 1.10.10? |
In many use cases users need to configure SQLAlchemy's connect_args (e.g. pass ssl.check_hostname=False to PyMySQL), and Airflow should expose this option and make it configurable. (cherry picked from commit d4a83bc)
#6226 # Jira
I didn't create JIRA ticket
Description
In our use case we need to configure SQLAlchemy's connect_args (e.g. we want to pass ssl.check_hostname=False to PyMySQL), and Airflow should expose this option and make it configurable.
Tests
test_configure_orm_with_default_values, test_sql_alchemy_connect_args and test_sql_alchemy_invalid_connect_args in the new tests/test_sqlalchemy_config.py.
Commits
Documentation