cleanup & retained mode test for k8s and aws

pull/437/head
Frostebite 2022-11-03 20:29:59 +00:00
parent f03fe8b423
commit b710053f10
3 changed files with 3 additions and 1 deletions

1
dist/index.js vendored
View File

@ -1607,6 +1607,7 @@ class AWSTaskRunner {
}
cloud_runner_logger_1.default.log(`Streaming...`);
const { output, shouldCleanup } = yield this.streamLogsUntilTaskStops(cluster, taskArn, streamName);
yield new Promise((resolve) => resolve(5000));
const taskData = yield AWSTaskRunner.describeTasks(cluster, taskArn);
const containerState = (_q = taskData.containers) === null || _q === void 0 ? void 0 : _q[0];
const exitCode = (containerState === null || containerState === void 0 ? void 0 : containerState.exitCode) || undefined;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -67,6 +67,7 @@ class AWSTaskRunner {
CloudRunnerLogger.log(`Streaming...`);
const { output, shouldCleanup } = await this.streamLogsUntilTaskStops(cluster, taskArn, streamName);
await new Promise((resolve) => resolve(5000));
const taskData = await AWSTaskRunner.describeTasks(cluster, taskArn);
const containerState = taskData.containers?.[0];
const exitCode = containerState?.exitCode || undefined;