fixes
parent
6dbd40358e
commit
31f35b4646
|
|
@ -3704,11 +3704,12 @@ class KubernetesTaskRunner {
|
|||
logs = await cloud_runner_system_1.CloudRunnerSystem.Run(`kubectl logs ${podName}${extraFlags} -f -c ${containerName} --timestamps${sinceTime}`, false, true);
|
||||
}
|
||||
catch (error) {
|
||||
const continueStreaming = error.includes(`dial timeout, backstop`) ||
|
||||
error.includes(`HttpError: HTTP request failed`) ||
|
||||
error.includes(`an error occurred when try to find container`) ||
|
||||
error.includes(`not found`) ||
|
||||
error.includes(`Not Found`);
|
||||
const errorString = `${error}`;
|
||||
const continueStreaming = errorString.includes(`dial timeout, backstop`) ||
|
||||
errorString.includes(`HttpError: HTTP request failed`) ||
|
||||
errorString.includes(`an error occurred when try to find container`) ||
|
||||
errorString.includes(`not found`) ||
|
||||
errorString.includes(`Not Found`);
|
||||
cloud_runner_logger_1.default.log(`K8s logging error ${error} ${continueStreaming}`);
|
||||
if (continueStreaming) {
|
||||
continue;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -49,12 +49,13 @@ class KubernetesTaskRunner {
|
|||
true,
|
||||
);
|
||||
} catch (error: any) {
|
||||
const errorString = `${error}`;
|
||||
const continueStreaming =
|
||||
error.includes(`dial timeout, backstop`) ||
|
||||
error.includes(`HttpError: HTTP request failed`) ||
|
||||
error.includes(`an error occurred when try to find container`) ||
|
||||
error.includes(`not found`) ||
|
||||
error.includes(`Not Found`);
|
||||
errorString.includes(`dial timeout, backstop`) ||
|
||||
errorString.includes(`HttpError: HTTP request failed`) ||
|
||||
errorString.includes(`an error occurred when try to find container`) ||
|
||||
errorString.includes(`not found`) ||
|
||||
errorString.includes(`Not Found`);
|
||||
CloudRunnerLogger.log(`K8s logging error ${error} ${continueStreaming}`);
|
||||
if (continueStreaming) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue