An example of withProgress
for fetching data:
withProgress({
data <- dbGetQuery(con, query)
}, value = 1, message = 'Fetching data...')
Assume this usually returns the data fairly quickly. However, in some cases, when the database is overloaded, the query might get stacked in a queue, which would result in an unusually long waiting time for the results.
Is it possible to add a timeout and a warning pop-up, alerting the user that the wait time is normal (i.e., expected, if say the reported load is high), all is running fine and there is no need to, for example, restart the app?
I think it would be enough to change the message =
after running 60s, but is it possible?