FluidFramework
FluidFramework copied to clipboard
Close container on critical errors
Currently, we rely on app to close container when critical error is raised on main container (though, if error is coming from DeltaManager, we close it ourselves as well). When error is hit on summarizing container, there is nobody to close it, so I think we should fix it and restart summarizer.
For agent/summarizer client containers, it feels like there are 3 main options:
- same level: Always close container on critical errors.
- propagate up: Analogous to main container, when a spawned container encounters a critical error it is the responsibility of the main container which created it to listen to the error event and close it if needed. Right now
Loader.requestdoes not provide a reference to the created container, so it cannot listen to the error event. - propagate down: The code running in the spawned container should be able to listen to the container error event and close itself. The container error event would need to be propagated to the runtime so the (for example) summarizer code can call close.
Closing in favor of #1603