0

I have this very simple app deployed in shinyapps.io:

library(shiny)

ui <- fluidPage(textOutput("text"))

server <- function(input, output, session){
  output$text<-renderText({print("Shinyapps.io Timeout Test")})
}

shinyApp(ui, server)

My purpose is to automatically stop my app after 5 minutes since initialization. That's why I changed the Instance Idle Timeout from 15 minutes to 5 minutes in "General" settings:

enter image description here

In the "Advanced" settings, I didn't change anything. But I'm not sure if my problem is related to the Connection Timeout.

enter image description here

However, the app didn't stop at minute 5.. I waited until the stop, to see the logs.

At minute 15, it appears:

enter image description here

... but in shinyapps.io dashboard the app still had the status "Running"

The app was finally stopped after 15 minutes more, as I can see in the logs:

enter image description here

It took 30 minutes in total to be stopped. ¿Why this app did not stop at minute 5? ¿Is my understanding of Instance Idle time incorrect?

Lev
  • 693
  • 1
  • 8
  • 24
  • Maybe this post can help you: https://stackoverflow.com/questions/33839543/shiny-server-session-time-out-doesnt-work – Iria Roca Jul 17 '23 at 09:30

0 Answers0