File tree 2 files changed +3
-0
lines changed
components/ws-manager-bridge/src 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export interface Configuration {
33
33
timeouts : {
34
34
metaInstanceCheckIntervalSeconds : number ;
35
35
preparingPhaseSeconds : number ;
36
+ buildingPhaseSeconds : number ;
36
37
stoppingPhaseSeconds : number ;
37
38
unknownPhaseSeconds : number ;
38
39
} ;
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export class MetaInstanceController implements Disposable {
41
41
const creationTime = new Date ( instance . latestInstance . creationTime ) . getTime ( ) ;
42
42
const stoppingTime = new Date ( instance . latestInstance . stoppingTime ?? now ) . getTime ( ) ; // stoppingTime only set if entered stopping state
43
43
const timedOutInPreparing = now >= creationTime + this . config . timeouts . preparingPhaseSeconds * 1000 ;
44
+ const timedOutInBuilding = now >= creationTime + this . config . timeouts . buildingPhaseSeconds * 1000 ;
44
45
const timedOutInStopping = now >= stoppingTime + this . config . timeouts . stoppingPhaseSeconds * 1000 ;
45
46
const timedOutInUnknown = now >= creationTime + this . config . timeouts . unknownPhaseSeconds * 1000 ;
46
47
const currentPhase = instance . latestInstance . status . phase ;
@@ -56,6 +57,7 @@ export class MetaInstanceController implements Disposable {
56
57
57
58
if (
58
59
( currentPhase === "preparing" && timedOutInPreparing ) ||
60
+ ( currentPhase === "building" && timedOutInBuilding ) ||
59
61
( currentPhase === "stopping" && timedOutInStopping ) ||
60
62
( currentPhase === "unknown" && timedOutInUnknown )
61
63
) {
You can’t perform that action at this time.
0 commit comments