retail-demo-store
retail-demo-store copied to clipboard
Personalize resource delete corner cases
Ran into some corner cases when deleting the Retail Demo Store stack
- If a Personalize recommender is in an
INACTIVEstate (i.e., stopped), the delete logic will raise an exception. Instead it should just delete the recommender. Although not likely, it is possible for the user to stop recommenders to reduce cost of the deployment. - The dataset group delete logic optimistically tries to delete the dataset group rather than calling describe to check its status. If the dataset group is already being deleted (such as after a reentrant call following the delete being kicked off), this logic will fail with a ResourceInUseException. This creates a race condition with just this resource types; all the other types have describe calls before attempting deletes.