-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Create CommandExecutor for raising an exception in case of error during cmd execution #17651
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
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
|
What is the reason behind the change? |
f233d8d to
a5d00ad
Compare
|
I've totally updated the commit. |
a5d00ad to
b4af08b
Compare
|
@potiuk could you, please, review this my commit also? ;) |
|
I think the exception may need a better name. What is cmd? Is it specific to Google Cloud? If not, why is it only used in the Google provider? The current class name and documentation is much too vague and would be problematic for future maintainers. |
|
@uranusjr cmd is an acronym for "command". This is not specific to Google, but for now is used only in Google because we need to raise an exception in case of any errors during command execution (original logic in the parent class just returns the status code of command execution). That's why we decided to leave the original logic and create the separate class which raises the exception in case of error during command execution, so if someone in future requires such behavior too, they will be able to use this class. |
|
Thanks for the explaination. I think it should be included in the source code (either in docstring or a comment). |
|
Ok, I will add this info |
|
@uranusjr I've added the docstring. Please, review |
ca8eea1 to
c461fae
Compare
uranusjr
left a comment
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.
You haven't addressed any of the previous review comments; I don't have anything new
c461fae to
205ce77
Compare
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
00536d8 to
71ab8b3
Compare
|
@uranusjr Can we merge this PR? |
^ 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.