wait between polling when Previous aws stack still exists

pull/437/head
Frostebite 2022-11-01 18:07:45 +00:00
parent 0126fe7749
commit e092789257
3 changed files with 3 additions and 1 deletions

1
dist/index.js vendored
View File

@ -1482,6 +1482,7 @@ class AWSJobStack {
if (element.StackName === taskDefStackName && element.StackStatus !== 'DELETE_COMPLETE') {
previousStackExists = true;
cloud_runner_logger_1.default.log(`Previous stack still exists: ${JSON.stringify(element)}`);
yield new Promise((promise) => setTimeout(promise, 5000));
}
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -120,6 +120,7 @@ export class AWSJobStack {
if (element.StackName === taskDefStackName && element.StackStatus !== 'DELETE_COMPLETE') {
previousStackExists = true;
CloudRunnerLogger.log(`Previous stack still exists: ${JSON.stringify(element)}`);
await new Promise((promise) => setTimeout(promise, 5000));
}
}
}