cleanup
parent
312f0ee140
commit
1ebb7fabec
|
|
@ -587,6 +587,7 @@ class AWS {
|
|||
cluster,
|
||||
}).promise()).tasks) === null || _r === void 0 ? void 0 : _r[0].containers) === null || _s === void 0 ? void 0 : _s[0].exitCode;
|
||||
if (exitCode !== 0) {
|
||||
yield this.cleanupResources(CF, taskDef);
|
||||
core.error(`job failed with exit code ${exitCode}`);
|
||||
throw new Error(`job failed with exit code ${exitCode}`);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -459,6 +459,7 @@ class AWS {
|
|||
}).promise()
|
||||
).tasks?.[0].containers?.[0].exitCode;
|
||||
if (exitCode !== 0) {
|
||||
await this.cleanupResources(CF, taskDef);
|
||||
core.error(`job failed with exit code ${exitCode}`);
|
||||
throw new Error(`job failed with exit code ${exitCode}`);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue