wait between polling when Previous aws stack still exists
parent
0126fe7749
commit
e092789257
|
|
@ -1482,6 +1482,7 @@ class AWSJobStack {
|
||||||
if (element.StackName === taskDefStackName && element.StackStatus !== 'DELETE_COMPLETE') {
|
if (element.StackName === taskDefStackName && element.StackStatus !== 'DELETE_COMPLETE') {
|
||||||
previousStackExists = true;
|
previousStackExists = true;
|
||||||
cloud_runner_logger_1.default.log(`Previous stack still exists: ${JSON.stringify(element)}`);
|
cloud_runner_logger_1.default.log(`Previous stack still exists: ${JSON.stringify(element)}`);
|
||||||
|
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -120,6 +120,7 @@ export class AWSJobStack {
|
||||||
if (element.StackName === taskDefStackName && element.StackStatus !== 'DELETE_COMPLETE') {
|
if (element.StackName === taskDefStackName && element.StackStatus !== 'DELETE_COMPLETE') {
|
||||||
previousStackExists = true;
|
previousStackExists = true;
|
||||||
CloudRunnerLogger.log(`Previous stack still exists: ${JSON.stringify(element)}`);
|
CloudRunnerLogger.log(`Previous stack still exists: ${JSON.stringify(element)}`);
|
||||||
|
await new Promise((promise) => setTimeout(promise, 5000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue