Session Management
This page covers the basics on using the Posit Workbench home page to work in a multi-session environment.
Accessing the home page
After logging in, Workbench will redirect users to the Workbench home page. It consists of three sections:
- Sessions: manage sessions and create new ones.
- Projects: create sessions for recently used/shared projects.
- Recently Published: create sessions for recently published projects.
To help you keep track of your running sessions, Posit Workbench comes with a home page that allows users to:
- View the status of all running sessions: pending, idle, active, shut down, or suspended.
- Gracefully or forcefully exit a running session.
- View recently accessed projects.
- View recently published projects.
- Participate in one or more shared projects.
- Run multiple analyses in parallel.
Session states
Sessions are long-running tasks that continue to be available until you explicitly quit them. This means that you can kick off a long-running job in one session and switch to another to continue working.
Sessions may be in one of the following states:
- Active: The session is running, and there has been recent user interaction or processing.
- Idle: The session is running, and there has been no recent user interaction or processing.
- Suspended: The session is not currently running as it has been suspended. Session information has been saved for future restoration. The session is restored when clicked on the home page with all active work preserved.
- Pending: The session is in the process of being made available to the user.
- Shutting Down: The session has been exited, and any unsaved work will be lost. This is done through quitting or force quitting the session.
When sessions have been idle (no processing or user interaction) for a specified period, 2 hours by default, they are suspended to free up server resources. When you next interact with that session, it is restored with all active work preserved, and you can resume work from where you had last left off. To change the session idle configuration, refer your server administrator to the Session Timeout section of the Admin Guide.
As a general rule, the larger the objects are, the longer it will take to resume a session that was suspended.
Managing sessions
Starting new sessions
To start a new session, from the Sessions section click the + New Session button.
When creating a new session, you may choose from the different editor options that have been configured by your administrator, including RStudio Pro, VS Code, JupyterLab, and Jupyter Notebook.
Opening existing sessions and sessions from projects
You can open existing sessions by clicking the session name.
You can open an existing or shared project in a new session by clicking:
- on a project under the Projects pane or
- a recently published project under the Recently Published pane.
This causes a prompt to display to create a session with that project already loaded for you using your preferred editor.
Ending sessions
Closing a browser window does not end a session, therefore, it is a good practice to routinely go through and clean up the sessions you aren’t using. This gives the compute resources back to the server to be available for other users.
To quit a session:
- To the right of the session that you wish to force quit, click the Quit button.
- Click the Quit Session button.
You can quit all open sessions with the Quit All button located at the top right of the Sessions section. Any unsaved work will be lost, so be sure to save work to your version control system of choice, or locally, before quitting.
In some rare cases, it might be necessary to force quit sessions. Typically, this is done when a session is not responding to inputs and may be part of a larger troubleshooting effort. To forcefully quit your session:
- Click the Quit button located to the right of the session you wish to force quit.
- Select the optional check box to enable Force Quit (kills all child processes).
- Click the Quit Session button.
This will forcefully stop your process and all of its descendant processes. Force quitting does not allow them to attempt to gracefully quit on their own. Consider using this option only as a last resort.