Actual: Session does not suspend. Expected: There is nothing wrong with the default behavior regarding RStudio Server preventing connections from suspending when a connection is active. We can simply not know if the remote connection supports getting suspended or how to reconnect to a database or Spark and leave the connection in the same state.
However, we should allow users to opt-out of this behavior with an option, say by setting options(connectionSuspend = TRUE), or:
library(sparklyr)
# Optional spark_install() on first run.withr::with_options(
list(connectionSuspend=TRUE), {
sc<- spark_connect(master="local")
})
Which should allow the session to suspend even when the connection is active.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
stalebot
added
the
stale
Issues which have been closed automatically due to inactivitiy.
label
Feb 5, 2021
RStudio Server reprex:
Then wait until session should suspend.
Actual: Session does not suspend.
Expected: There is nothing wrong with the default behavior regarding RStudio Server preventing connections from suspending when a connection is active. We can simply not know if the remote connection supports getting suspended or how to reconnect to a database or Spark and leave the connection in the same state.
However, we should allow users to opt-out of this behavior with an option, say by setting
options(connectionSuspend = TRUE), or:Which should allow the session to suspend even when the connection is active.
See: https://community.rstudio.com/t/how-to-disconnect-spark-when-idle/22130
The text was updated successfully, but these errors were encountered: