Logging improvement

pull/273/head
Frostebite 2021-06-19 04:39:01 +01:00
parent 0886bb446c
commit 23e042fcbe
3 changed files with 14 additions and 5 deletions

5
dist/index.js vendored
View File

@ -1616,7 +1616,10 @@ class Kubernetes {
return __awaiter(this, void 0, void 0, function* () {
yield async_wait_until_1.waitUntil(() => __awaiter(this, void 0, void 0, function* () {
(yield this.getPodStatusPhase()) !== 'Pending';
}), 500000);
}), {
timeout: 500000,
intervalBetweenAttempts: 15000,
});
const phase = yield this.getPodStatusPhase();
if (phase === 'Running') {
core.info('Pod no longer pending');

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -395,9 +395,15 @@ class Kubernetes implements RemoteBuilderProviderInterface {
}
async watchUntilPodRunning() {
await waitUntil(async () => {
(await this.getPodStatusPhase()) !== 'Pending';
}, 500000);
await waitUntil(
async () => {
(await this.getPodStatusPhase()) !== 'Pending';
},
{
timeout: 500000,
intervalBetweenAttempts: 15000,
},
);
const phase = await this.getPodStatusPhase();
if (phase === 'Running') {
core.info('Pod no longer pending');