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?
If
component A
depends oncomponent B
, soB
will be deployed firstly, then will beA
. But when removing all components,syncState
function only remove them in parallel. When removingB
, sometimesB
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#L333For this part, could we add a retry method to solve this problem?