File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
components/ws-manager-bridge/src Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -512,8 +512,6 @@ export class WorkspaceManagerBridge implements Disposable {
512
512
513
513
for ( const [ instanceId , ri ] of runningInstancesIdx . entries ( ) ) {
514
514
const instance = ri . latestInstance ;
515
- // This ensures that the workspace instance is not in a
516
- // non-running phase for longer than the max time
517
515
if (
518
516
! (
519
517
instance . status . phase === "running" ||
@@ -614,11 +612,10 @@ export class WorkspaceManagerBridge implements Disposable {
614
612
615
613
protected async markWorkspaceInstanceAsStopped ( ctx : TraceContext , info : RunningWorkspaceInfo , now : Date ) {
616
614
const nowISO = now . toISOString ( ) ;
615
+ info . latestInstance . status . phase = "stopped" ;
617
616
info . latestInstance . stoppingTime = nowISO ;
618
617
info . latestInstance . stoppedTime = nowISO ;
619
- info . latestInstance . status . phase = "stopped" ;
620
618
await this . workspaceDB . trace ( ctx ) . storeInstance ( info . latestInstance ) ;
621
-
622
619
await this . messagebus . notifyOnInstanceUpdate ( ctx , info . workspace . ownerId , info . latestInstance ) ;
623
620
await this . prebuildUpdater . stopPrebuildInstance ( ctx , info . latestInstance ) ;
624
621
}
You can’t perform that action at this time.
0 commit comments