Hi all,
My question is regarding keeping the shiny session active after closing the browser tab. I have deployed a shiny app on my university server. The app is developed using async programming (future package and multicore plan) and is capable of sending the results via email to the user after the results are generated (in the future). As the app does some long-running jobs I would prefer the app to remain active even after a user closes the browser tab. But it doesn't. The app is actually capable of remaining active even after the user loses access to their session. I am saying this because the user still gets the results email even when they get disconnected from the internet immediately after they hit the RUN button and then close the tab. However, if the user closes the tab as soon as they hit the RUN button without disconnecting from the internet the app is stopped and no result will be emailed to them.
My major question is: Is there any way to keep the shiny session active after the tab is closed? In other words, what does exactly happen under the hood after the user closes the browser tab? Is there any way to prevent that or somehow neutralize its effect?
I appreciate any help,
Adrian