cleanup & retained mode test for k8s and aws
parent
f03fe8b423
commit
b710053f10
|
|
@ -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;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue