@@ -518,7 +518,6 @@ export class WorkspaceManagerBridge implements Disposable {
518
518
* - preparing
519
519
* - building
520
520
* It also covers these phases, as fallback, when - for whatever reason - we no longer receive updates from ws-manager.
521
- * - stopping (as fallback, in case ws-manager is stopped to early: configure to be >= then ws-manager timeouts!)
522
521
* - unknown (fallback)
523
522
*/
524
523
protected async controlInstancesTimeouts ( parentCtx : TraceContext , runningInstances : RunningWorkspaceInfo [ ] ) {
@@ -552,25 +551,20 @@ export class WorkspaceManagerBridge implements Disposable {
552
551
try {
553
552
const now = Date . now ( ) ;
554
553
const creationTime = new Date ( info . latestInstance . creationTime ) . getTime ( ) ;
555
- const stoppingTime = new Date ( info . latestInstance . stoppingTime ?? now ) . getTime ( ) ; // stoppingTime only set if entered stopping state
556
554
const timedOutInPreparing = now >= creationTime + this . config . timeouts . preparingPhaseSeconds * 1000 ;
557
555
const timedOutInBuilding = now >= creationTime + this . config . timeouts . buildingPhaseSeconds * 1000 ;
558
- const timedOutInStopping = now >= stoppingTime + this . config . timeouts . stoppingPhaseSeconds * 1000 ;
559
556
const timedOutInUnknown = now >= creationTime + this . config . timeouts . unknownPhaseSeconds * 1000 ;
560
557
const currentPhase = info . latestInstance . status . phase ;
561
558
562
559
log . debug ( logContext , "Controller: Checking for instances in the DB to mark as stopped" , {
563
560
creationTime,
564
- stoppingTime,
565
561
timedOutInPreparing,
566
- timedOutInStopping,
567
562
currentPhase,
568
563
} ) ;
569
564
570
565
if (
571
566
( currentPhase === "preparing" && timedOutInPreparing ) ||
572
567
( currentPhase === "building" && timedOutInBuilding ) ||
573
- ( currentPhase === "stopping" && timedOutInStopping ) ||
574
568
( currentPhase === "unknown" && timedOutInUnknown )
575
569
) {
576
570
log . info ( logContext , "Controller: Marking workspace instance as stopped" , {
0 commit comments