Skip to content

Commit

Permalink
Merge pull request #21 from haskell-works/newhoggy/allow-more-time-fo…
Browse files Browse the repository at this point in the history
…r-rds-cluster-to-start

Allow more time for RDS cluster to start
  • Loading branch information
newhoggy authored Oct 2, 2024
2 parents bfc65f5 + 4b1f73a commit b08eabd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testlib/Data/RdsData/Polysemy/Test/Cluster.hs
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ waitUntilRdsDbClusterAvailable :: ()
-> Sem r ()
waitUntilRdsDbClusterAvailable dbClusterArn =
withFrozenCallStack do
repeatNWhileM_ 24 $ \_ -> do
repeatNWhileM_ 120 $ \_ -> do
result <- sendAws $
AWS.newDescribeDBClusters
& the @"dbClusterIdentifier" .~ Just dbClusterArn

let mStatus = result ^? the @"dbClusters" . _Just . each . the @"status" . _Just

if mStatus == Just "available"
then pure False
then threadDelay 1_000_000 >> pure False
else threadDelay 1_000_000 >> pure True

0 comments on commit b08eabd

Please sign in to comment.