Skip to content

Commit 46c09aa

Browse files
Andrew Farriesroboquat
Andrew Farries
authored andcommitted
Wait for logs only when in building state
1 parent 1dd6500 commit 46c09aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
15471547
await new Promise((resolve) => setTimeout(resolve, 2000));
15481548

15491549
const wsi = await this.workspaceDb.trace(ctx).findInstanceById(instance.id);
1550-
if (!wsi || (wsi.status.phase !== "preparing" && wsi.status.phase !== "building")) {
1550+
if (!wsi || wsi.status.phase !== "building") {
15511551
log.debug(logCtx, `imagebuild logs: instance is not/no longer in 'building' state`, {
15521552
phase: wsi?.status.phase,
15531553
});

0 commit comments

Comments
 (0)