Listen to the process to detect shutdowns

Issue #545 resolved
Desrever Nu created an issue

With the bot running, the UI should be aware of the underlying process and when killed/stopped also adapt the UI

Comments (8)

  1. Benjamin Cordes

    what do you mean by adapt? the shutdownhook should work as before AFAIK. the stop button shuts down the bot, not the UI server.

  2. Desrever Nu reporter

    I was thinking the user killing the underlying process via kill, or for instance from the IDE.

    By adapt I mean that in the scenario above the UI currently still see the bot as running and orders active, which could be misleading

  3. Benjamin Cordes

    If user starts the UI and shutdown the process the page should return 404 on reload. solution would be: if a JS request fails we use close(); which closes the tab, or we show a message page.

  4. Log in to comment