Increasing the time-out settings for my R-Shiny app hosted on Posit Connect Cloud

I have an R-Shiny app that is hosted on Posit Connect Cloud (Free Plan but I can upgrade to a paid plan if necessary). The app is a prototype, so only 2 of my co-workers sometimes use it.

On start-up, I am reading a big dataset from Google Sheet that sometime makes that app fail to start. Also, when the user spends a lot of time without interacting with the app, it times out (the page greys-out and requires hard reload).

My question there is: I there a setting I can make either somewhere the app code or in Posit Connect Cloud to prevent this happening?

Hello,

Applications automatically shut down after five minutes of inactivity by default. This is to minimize active hours consumed. However, we will eventually turn this into a user setting.

In terms of your app's performance, it is possible that it is running into memory constraints depending on the size of the data you are bringing in and your specific code. When it fails to start, what do the logs say?

Best,

Alex

+1 here - I would love to make the timeouts longer and would be more than willing to pay extra.

Noted. Thanks, Dan.

What type of app are you deploying where keeping it awake longer is a better experience?

Happy to share. I have a pretty large app which automates the creation of environmental reports for urban planning. It has lots of different tabs and produces tables and word documents and relies on various inputs the user puts in bit by bit. Often they will be working on a “project” and produce one piece, copy that into another document, then go back and find that the whole app has reset.

Now, I have explored options like bookmarking, but it’s pretty complicated given the complex inputs and reactives. I also explored how I could have a notion of a project creation that is stored, but ultimately I didn’t manage it.

I also love the new posit cloud experience and in particular the GitHub integration was a game changer. Before I would have all sorts of pain deploying that has totally gone away. However, i think shinyapps.io at least let me lengthen the window so it was less of a big deal.

1 Like