-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Simplified GCSTaskHandler configuration #10365
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
|
CC: @mhenc |
| type: string | ||
| example: ~ | ||
| default: "" | ||
| - name: stackdriver_key_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if there is 'deprecation policy' but if someone was actually using this setting. After upgrade it will stop working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option has not yet been found in any release.
| ) | ||
| client = storage.Client( | ||
| credentials=credentials, | ||
| client_info=ClientInfo(client_library_version='airflow_v' + version.version), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is 'airflow_v'? - looks magical for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a "User Agent" that allows you to track on the Google side which versions of Airflow your users are using. This identical identifier is used each time a client is created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, why it's not in any constant then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make it a constant in the next PR because it repeats in 3 places. It is recommended to use Hooks where this constant is already defined.
|
@potiuk Can I ask for a look? |
| ) | ||
| client = storage.Client( | ||
| credentials=credentials, | ||
| client_info=ClientInfo(client_library_version='airflow_v' + version.version), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, why it's not in any constant then?
| description: | | ||
| Path to GCP Credential JSON file. If omitted, authorization based on `the Application Default | ||
| Path to Google Credential JSON file. If omitted, authorization based on `the Application Default | ||
| Credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Credentials | |
| Credentials` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


The change aims to simplify the configuration of logging, to prevent corruption of the instance configuration by changing the value controlled by the user - connection entry. If you configure a backend secret, it also means the webserver doesn't need to connect to it. This simplifies setups with multiple GCP projects.
This also makes the configuration of the Backend Secret and the StackdriverTaskHandler similar.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
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.