Skip to content

Commit

Permalink
Set phase to building when building an image
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Farries committed Apr 25, 2022
1 parent c511af4 commit 40b7068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/server/src/workspace/workspace-starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ export class WorkspaceStarter {
// Update workspace instance to tell the world we're building an image
const workspaceImage = result.ref;
const status: WorkspaceInstanceStatus = result.actuallyNeedsBuild
? { ...instance.status, phase: "preparing" }
? { ...instance.status, phase: "building" }
: instance.status;
instance = await this.workspaceDb
.trace({ span })
Expand Down Expand Up @@ -1023,7 +1023,7 @@ export class WorkspaceStarter {
}

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

Expand Down

0 comments on commit 40b7068

Please sign in to comment.