You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -152,8 +153,26 @@ export function cloud(buddy: CLI) {
152
153
stdin: 'inherit',
153
154
})
154
155
155
-
awaitoutro('Your cloud has been removed',{ startTime,useSeconds: true})
156
-
process.exit(ExitCode.Success)
156
+
// TODO: this should not be necessary but for some reason some buckets with versions aren't properly getting deleted
157
+
// and because of that, we simply run the command several times, because eventually the versions will be deleted
158
+
// and consequently the buckets will be deleted
159
+
// the reason we are using 7 as the number of times to run the command is because it's the most amount of times I have had to run it to get it to delete everything
160
+
try{
161
+
awaitloop(7,async()=>{
162
+
awaitrunCommand('buddy cloud:clean-up',{
163
+
...options,
164
+
cwd: p.projectPath(),
165
+
stdout: 'ignore',
166
+
})
167
+
})
168
+
169
+
awaitoutro('Your cloud has been removed',{ startTime,useSeconds: true})
170
+
process.exit(ExitCode.Success)
171
+
}
172
+
catch(error){
173
+
awaitoutro('While cleaning up the cloud, there was an issue',{ startTime,useSeconds: true},errorasError)
0 commit comments