locking test improvements
parent
69f3a87d5d
commit
31669663bc
|
@ -1728,7 +1728,7 @@ class AWSTaskRunner {
|
||||||
}
|
}
|
||||||
cloud_runner_logger_1.default.log(`Streaming...`);
|
cloud_runner_logger_1.default.log(`Streaming...`);
|
||||||
const { output, shouldCleanup } = yield this.streamLogsUntilTaskStops(cluster, taskArn, streamName);
|
const { output, shouldCleanup } = yield this.streamLogsUntilTaskStops(cluster, taskArn, streamName);
|
||||||
yield new Promise((resolve) => resolve(5000));
|
yield new Promise((resolve) => resolve(10000));
|
||||||
const taskData = yield AWSTaskRunner.describeTasks(cluster, taskArn);
|
const taskData = yield AWSTaskRunner.describeTasks(cluster, taskArn);
|
||||||
const containerState = (_q = taskData.containers) === null || _q === void 0 ? void 0 : _q[0];
|
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;
|
const exitCode = (containerState === null || containerState === void 0 ? void 0 : containerState.exitCode) || undefined;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -72,7 +72,7 @@ class AWSTaskRunner {
|
||||||
|
|
||||||
CloudRunnerLogger.log(`Streaming...`);
|
CloudRunnerLogger.log(`Streaming...`);
|
||||||
const { output, shouldCleanup } = await this.streamLogsUntilTaskStops(cluster, taskArn, streamName);
|
const { output, shouldCleanup } = await this.streamLogsUntilTaskStops(cluster, taskArn, streamName);
|
||||||
await new Promise((resolve) => resolve(5000));
|
await new Promise((resolve) => resolve(10000));
|
||||||
const taskData = await AWSTaskRunner.describeTasks(cluster, taskArn);
|
const taskData = await AWSTaskRunner.describeTasks(cluster, taskArn);
|
||||||
const containerState = taskData.containers?.[0];
|
const containerState = taskData.containers?.[0];
|
||||||
const exitCode = containerState?.exitCode || undefined;
|
const exitCode = containerState?.exitCode || undefined;
|
||||||
|
|
Loading…
Reference in New Issue