always run -m list-resources after builds, will become always garbage collect

pull/437/head
Frostebite 2022-11-07 18:35:19 +00:00
parent d13f9196c5
commit 2df26620bb
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -3089,7 +3089,7 @@ class Kubernetes {
} }
} }
catch (error) { catch (error) {
const reason = ((_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.reason) || ``; const reason = ((_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.reason) || error.reason || ``;
const errorMessage = error.message || ``; const errorMessage = error.message || ``;
const continueStreaming = reason === `NotFound` || errorMessage.includes(`dial timeout, backstop`); const continueStreaming = reason === `NotFound` || errorMessage.includes(`dial timeout, backstop`);
if (continueStreaming) { if (continueStreaming) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -161,7 +161,7 @@ class Kubernetes implements ProviderInterface {
CloudRunnerLogger.log('Pod still running, recovering stream...'); CloudRunnerLogger.log('Pod still running, recovering stream...');
} }
} catch (error: any) { } catch (error: any) {
const reason = error.response?.body?.reason || ``; const reason = error.response?.body?.reason || error.reason || ``;
const errorMessage = error.message || ``; const errorMessage = error.message || ``;
const continueStreaming = reason === `NotFound` || errorMessage.includes(`dial timeout, backstop`); const continueStreaming = reason === `NotFound` || errorMessage.includes(`dial timeout, backstop`);