cleanup
parent
f5bd8a7dde
commit
8e2df47c7f
|
|
@ -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();
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue