Skip to content

Commit d676b65

Browse files
Andrew Farriesroboquat
Andrew Farries
authored andcommitted
Set phase to building when building an image
1 parent 46c09aa commit d676b65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/server/src/workspace/workspace-starter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ export class WorkspaceStarter {
997997
// Update workspace instance to tell the world we're building an image
998998
const workspaceImage = result.ref;
999999
const status: WorkspaceInstanceStatus = result.actuallyNeedsBuild
1000-
? { ...instance.status, phase: "preparing" }
1000+
? { ...instance.status, phase: "building" }
10011001
: instance.status;
10021002
instance = await this.workspaceDb
10031003
.trace({ span })
@@ -1050,7 +1050,7 @@ export class WorkspaceStarter {
10501050
}
10511051

10521052
instance = await this.workspaceDb.trace({ span }).updateInstancePartial(instance.id, {
1053-
status: { ...instance.status, phase: "preparing", conditions: { failed: message }, message },
1053+
status: { ...instance.status, phase: "building", conditions: { failed: message }, message },
10541054
});
10551055
await this.messageBus.notifyOnInstanceUpdate(workspace.ownerId, instance);
10561056

0 commit comments

Comments
 (0)