pull/496/head
Frostebite 2023-03-06 18:42:39 +00:00
parent f5bd8a7dde
commit 8e2df47c7f
3 changed files with 4 additions and 2 deletions

1
dist/index.js vendored
View File

@ -4050,6 +4050,7 @@ class KubernetesTaskRunner {
let shouldCleanup = true;
stream._write = (chunk, encoding, next) => {
didStreamAnyLogs = true;
KubernetesTaskRunner.lastReceivedTimestamp = new Date(`${chunk.toString().split(`Z `)[0]}Z`);
const message = chunk.toString().split(`Z `)[1].trimRight(`\n`);
({ shouldReadLogs, shouldCleanup, output } = follow_log_stream_service_1.FollowLogStreamService.handleIteration(message, shouldReadLogs, shouldCleanup, output));
next();

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@ import { FollowLogStreamService } from '../../services/follow-log-stream-service
import { CloudRunnerSystem } from '../../services/cloud-runner-system';
class KubernetesTaskRunner {
static lastReceivedTimestamp: number;
static lastReceivedTimestamp: Date;
static async runTask(
kubeConfig: KubeConfig,
kubeClient: CoreV1Api,
@ -27,6 +27,7 @@ class KubernetesTaskRunner {
let shouldCleanup = true;
stream._write = (chunk, encoding, next) => {
didStreamAnyLogs = true;
KubernetesTaskRunner.lastReceivedTimestamp = new Date(`${chunk.toString().split(`Z `)[0]}Z`);
const message = chunk.toString().split(`Z `)[1].trimRight(`\n`);
({ shouldReadLogs, shouldCleanup, output } = FollowLogStreamService.handleIteration(
message,