-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Add Deferrable Mode to RedshiftCreateClusterSnapshotOperator #30856
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 Deferrable Mode to RedshiftCreateClusterSnapshotOperator #30856
Conversation
vincbeck
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.
A simple nit. But LGTM
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.
nit. Use @cached_property to create the hook?
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.
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.
potiuk
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.
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.
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
9fef601 to
d455d65
Compare
…edshift-create-cluster-snapshot
…edshift-create-cluster-snapshot
Add deferrable mode to
RedshiftCreateClusterSnapshotOperatorusing 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.rstor{issue_number}.significant.rst, in newsfragments.