Skip to content

Conversation

@syedahsn
Copy link
Contributor

Add deferrable mode to RedshiftCreateClusterSnapshotOperator using aiobotocore waiters, following the method described in README.md.


^ 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 Apr 25, 2023
Copy link
Contributor

@vincbeck vincbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A simple nit. But LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. Use @cached_property to create the hook?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in my opinion it's not useful to do this, because the run method is never executed more than once for a given object, so the cached_property thing is useless.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok with that one even without the @cached_property - but if you can change it that would be fine too. Seems to be common pattern Amazon provider.

syedahsn added 4 commits May 10, 2023 00:20
Add async custom waiter support in get_waiter, and base_waiter.py
Add Deferrable mode to RedshiftCreateClusterOperator
Add RedshiftCreateClusterTrigger and unit test
Add README.md for writing Triggers for AMPP
Add unit test to check for deferred exception
@syedahsn syedahsn force-pushed the syedahsn/deferrable-redshift-create-cluster-snapshot branch from 9fef601 to d455d65 Compare May 10, 2023 07:20
@o-nikolas o-nikolas merged commit 911bd1c into apache:main May 24, 2023
@vandonr-amz vandonr-amz deleted the syedahsn/deferrable-redshift-create-cluster-snapshot branch May 24, 2023 22:06
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.

5 participants