-
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
[AIRFLOW-4236] Add num_retries to MySqlToGoogleCloudStorageOperator #5043
Conversation
Add num_retries to MySqlToGoogleCloudStorageOperator
Add num_retries to MySqlToGoogleCloudStorageOperator
Add num_retries to MySqlToGoogleCloudStorageOperator
Add num_retries to MySqlToGoogleCloudStorageOperator
Codecov Report
@@ Coverage Diff @@
## master #5043 +/- ##
==========================================
- Coverage 76.36% 76.24% -0.13%
==========================================
Files 471 466 -5
Lines 30290 30102 -188
==========================================
- Hits 23130 22950 -180
+ Misses 7160 7152 -8
Continue to review full report at Codecov.
|
Thanks for picking this up.
are also don't allow to set the Can you you address them as well? If not, it's better to link this PR to a new Jira ticket which will be a sub-task of https://issues.apache.org/jira/browse/AIRFLOW-4236 |
Better to address similar issues in one PR then to split it across many |
@OmerJog Cool. I will get it done. |
Other operators have a fixed number of retry attempts.
I'm afraid it's a good idea to give the user the option to configure this parameter in this way. Too many parameters will make it difficult to use the operator. In my opinion, this value should be configured in the connection settings instead of the specific use, but fixed value is good enough in this case. I working on similar mechanism for Google Cloud AI operators: https://github.com/PolideaInternal/airflow/pull/85/files CC: @potiuk |
This parameter is confusingly similar to BaseOperator.retries parameter. If we were go have this paramater the docs would need to be much clearer about what is "internal" to one task attempt compared to number of attempts, without changing the name on BaseOperator. |
I agree with @mik-laj . It would be ideal to have a uniform number across all the operators. We can have a MAX retries in connection, a default value in hooks, and can be overriden in operator. Keep in mind that we also have a retry for all airflow operators as well so that we don't conflict. |
Another example of "internal" retries
|
I think having a default value in connection is a good approach. |
@OmerJog Sorry, I should have included it in the Uploading.md
|
@kaxil thx. So it sounds like this PR is no longer needed. The new fix in your PR solves the problem. |
@OmerJog Yes, I will close this PR and create another PR to let the user set a default number of request retries in GCP connection. |
Add num_retries to MySqlToGoogleCloudStorageOperator
Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation
Code Quality
flake8