Logging improvement
parent
0886bb446c
commit
23e042fcbe
|
|
@ -1616,7 +1616,10 @@ class Kubernetes {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
yield async_wait_until_1.waitUntil(() => __awaiter(this, void 0, void 0, function* () {
|
yield async_wait_until_1.waitUntil(() => __awaiter(this, void 0, void 0, function* () {
|
||||||
(yield this.getPodStatusPhase()) !== 'Pending';
|
(yield this.getPodStatusPhase()) !== 'Pending';
|
||||||
}), 500000);
|
}), {
|
||||||
|
timeout: 500000,
|
||||||
|
intervalBetweenAttempts: 15000,
|
||||||
|
});
|
||||||
const phase = yield this.getPodStatusPhase();
|
const phase = yield this.getPodStatusPhase();
|
||||||
if (phase === 'Running') {
|
if (phase === 'Running') {
|
||||||
core.info('Pod no longer pending');
|
core.info('Pod no longer pending');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -395,9 +395,15 @@ class Kubernetes implements RemoteBuilderProviderInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
async watchUntilPodRunning() {
|
async watchUntilPodRunning() {
|
||||||
await waitUntil(async () => {
|
await waitUntil(
|
||||||
(await this.getPodStatusPhase()) !== 'Pending';
|
async () => {
|
||||||
}, 500000);
|
(await this.getPodStatusPhase()) !== 'Pending';
|
||||||
|
},
|
||||||
|
{
|
||||||
|
timeout: 500000,
|
||||||
|
intervalBetweenAttempts: 15000,
|
||||||
|
},
|
||||||
|
);
|
||||||
const phase = await this.getPodStatusPhase();
|
const phase = await this.getPodStatusPhase();
|
||||||
if (phase === 'Running') {
|
if (phase === 'Running') {
|
||||||
core.info('Pod no longer pending');
|
core.info('Pod no longer pending');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue