Fix K8s hang

pull/310/head
Frostebite 2022-01-12 23:15:24 +00:00
parent 99410df253
commit 50ee497ec9
3 changed files with 5 additions and 7 deletions

5
dist/index.js vendored
View File

@ -1937,10 +1937,9 @@ class Kubernetes {
timeout: 500000, timeout: 500000,
intervalBetweenAttempts: 15000, intervalBetweenAttempts: 15000,
}); });
// eslint-disable-next-line no-empty
} }
catch (_a) { catch (_a) { }
cloud_runner_logger_1.default.log('failed to read the state of the job while cleaning up?');
}
}); });
} }
cleanupSharedResources( cleanupSharedResources(

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -159,9 +159,8 @@ class Kubernetes implements CloudRunnerProviderInterface {
intervalBetweenAttempts: 15000, intervalBetweenAttempts: 15000,
}, },
); );
} catch { // eslint-disable-next-line no-empty
CloudRunnerLogger.log('failed to read the state of the job while cleaning up?'); } catch {}
}
} }
async cleanupSharedResources( async cleanupSharedResources(