serverless / template

Compose & provision a collection of Serverless Components
https://serverless.com
Apache License 2.0
10 stars 6 forks source link

Remove components should care about component dependencies #16

Open yugasun opened 4 years ago

yugasun commented 4 years ago

If component A depends on component B, so B will be deployed firstly, then will be A. But when removing all components, syncState function only remove them in parallel. When removing B, sometimes B will say "I have relevant resources A, you should delete it firstly", so the remove action will fail. This is the source code: https://github.com/serverless/template/blob/master/utils.js#L333

For this part, could we add a retry method to solve this problem?