Skip to content

Conversation

syedahsn
Copy link
Contributor

Fix for issue regarding a mix up of variable names. The solution proposed changes the variable name max_retires to max_polling_attempts. Both names are currently accepted, but if max_tries is used, the user is shown a deprecation warning. Internally, the operators only use max_polling_attempts. If both are passed, but their values are not equal, an Exception is thrown.

closes: #22381


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Aug 25, 2022
@eladkal eladkal changed the title Athena and EMR operator max_retries mix-up fix (Fix for #22381) Athena and EMR operator max_retries mix-up fix Aug 26, 2022
@potiuk
Copy link
Member

potiuk commented Aug 27, 2022

Some failures.

…ion warning to inform users about naming change.

Raise Exception if values of `max_tries` does not match value of `max_polling_attempts`.
@syedahsn syedahsn force-pushed the syedahsn/max-retries-fix branch from cfe584a to b13070a Compare August 30, 2022 05:29
@potiuk potiuk merged commit d5820a7 into apache:main Sep 11, 2022
@vandonr-amz vandonr-amz deleted the syedahsn/max-retries-fix branch May 24, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AthenaOperator retries max_tries mix-up

3 participants