-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Add CloudBuild build id log #30516
Add CloudBuild build id log #30516
Conversation
return operation, id_ | ||
|
||
@GoogleBaseHook.fallback_to_default_project_id | ||
def create_build( |
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.
maybe need to deprecated it first and we should remove it only in major release
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.
@pankajastro
Thank you for your review. I have reverted the changes based on your feedback.
If you happen to know, could you please tell me what is the common way to deprecate a method in Airflow?
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.
It depends - look at similar cases where DeprecationWarning is raised - just search in our codebase.
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.
@@ -207,6 +209,11 @@ def create_build( | |||
:param metadata: Optional, additional metadata that is provided to the method. | |||
|
|||
""" | |||
warnings.warn( |
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.
since we have merged #30975 so we should use AirflowProviderDeprecationWarning
.
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.
Thank you I fixed it.
Added logging for CloudBuild build id.
This fix makes it easier to investigate when CloudBuild fails, etc.
Summary
Remove hooks.create_build as it was unused