-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Deferrable implementation for RedshiftPauseClusterOperator to …
…follow standard (#30853) * Change base_aws.py to support async_conn * 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 Deferrable mode to Redshift Pause Cluster Operator * Add logging to deferrable waiter * Add check for failure early
- Loading branch information
Showing
5 changed files
with
291 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": 2, | ||
"waiters": { | ||
"cluster_paused": { | ||
"operation": "DescribeClusters", | ||
"delay": 30, | ||
"maxAttempts": 60, | ||
"acceptors": [ | ||
{ | ||
"matcher": "pathAll", | ||
"argument": "Clusters[].ClusterStatus", | ||
"expected": "paused", | ||
"state": "success" | ||
}, | ||
{ | ||
"matcher": "error", | ||
"argument": "Clusters[].ClusterStatus", | ||
"expected": "ClusterNotFound", | ||
"state": "retry" | ||
}, | ||
{ | ||
"matcher": "pathAny", | ||
"argument": "Clusters[].ClusterStatus", | ||
"expected": "deleting", | ||
"state": "failure" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.