Better detect when Livebook runs out of memory on install #2075
Labels
area:backend
Related to the backend
chore
Technical changes
contributions welcome
Ready to implement (contributions welcome)
Milestone
On machines with low memory, it is most likely installation will fail. We can try to detect those scenarios and show a message to the user when it happens.
In a nutshell, the idea is to change the URL when installing to add a parameter. The parameter can store information such as the current node identifier (randomly generated) and the current timestamp. If the app restarts, we will try to join the same URL and redirect because the session does not exist. If that's the case we can and
Node.list == []
is emptyWe can then show an error message saying the notebook belonged to another Livebook instance and it most likely crashed during installation. We mention installation may be expensive and a larger machine may be necessary.
The text was updated successfully, but these errors were encountered: