disable k8s http error retry

pull/437/head
Frostebite 2022-11-01 22:52:34 +00:00
parent bdfb2f0d90
commit 71e5b09d3a
3 changed files with 3 additions and 14 deletions

8
dist/index.js vendored
View File

@ -3075,13 +3075,7 @@ class Kubernetes {
catch (error) {
cloud_runner_logger_1.default.log('error running k8s workflow');
cloud_runner_logger_1.default.log(error.message);
if (error.message.includes(`HTTP disabled for now`)) {
cloud_runner_logger_1.default.log('retrying watch because error includes HTTP ignore code');
continue;
}
else {
throw error;
}
throw error;
}
}
yield this.cleanupTaskResources();

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -155,12 +155,7 @@ class Kubernetes implements ProviderInterface {
} catch (error: any) {
CloudRunnerLogger.log('error running k8s workflow');
CloudRunnerLogger.log(error.message);
if (error.message.includes(`HTTP disabled for now`)) {
CloudRunnerLogger.log('retrying watch because error includes HTTP ignore code');
continue;
} else {
throw error;
}
throw error;
}
}
await this.cleanupTaskResources();