Skip to content

Commit adaf0f5

Browse files
committed
[fix] exit FSM when health check failed
1 parent 0740f73 commit adaf0f5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

app/library/babylonjs/runtime/fsm/machine.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,11 @@ export class StateMachine {
787787
} else {
788788
if (currentTime - requestTime > orchestratorTimeout * 1000) {
789789
Logger.error(
790-
i18n.t('fsm.algorithmTimedOutDuringStreaming', { ns: 'client' }),
790+
i18n.t('fsm.algorithmTimedOutDuringHealthCheckStreamReady', {
791+
ns: 'client',
792+
}),
791793
)
792-
await this._handleAlgorithmGenerationFailure()
794+
await this._switchState(States.EXIT)
793795
return
794796
}
795797
await new Promise(resolve =>
@@ -806,9 +808,11 @@ export class StateMachine {
806808
} else {
807809
if (currentTime - readyTime > orchestratorTimeout * 1000) {
808810
Logger.error(
809-
i18n.t('fsm.algorithmTimedOutDuringStreaming', { ns: 'client' }),
811+
i18n.t('fsm.algorithmTimedOutDuringHealthCheckStreamEnd', {
812+
ns: 'client',
813+
}),
810814
)
811-
await this._handleAlgorithmGenerationFailure()
815+
await this._switchState(States.EXIT)
812816
return
813817
}
814818
await new Promise(resolve =>

0 commit comments

Comments
 (0)