You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While workspaces can auto-stop based on activity, users set this value per-workspace it can be continuously bumped to prevent a workspace from stopping. For large enterprises, this can drive up cloud cost and introduce security concerns, as workspaces are not kept up to date.
75
75
76
-
To enforce auto-stopping, you can enforce a timeout for all workspaces, as well as a max session duration.
76
+
To enforce auto-stopping, you can set an auto-stop interval to ensure workspaces are auto restarted or auto-stopped, regardless of user activity.
Stops occur during a user's [quiet hours](../workspaces.md#quiet-hours), which prevent interruptions. If a user is still using their workspace, they can postpone a restart up to 3 hours.
Copy file name to clipboardExpand all lines: docs/workspaces.md
+5-14Lines changed: 5 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -45,21 +45,19 @@ In Coder, workspaces can auto-stop when the user is not actively using the works
45
45
- Open tunnels (`coder port-forward`)
46
46
- Open WebSockets (web terminal, [web IDEs](./ides/web-ides.md) such as code-server and JupyterLab)
47
47
48
-
> [Custom activity](#TODO) can be registered via Coder's REST API, such as an ongoing data science pipeline.
48
+
> [Custom activity](./admin/automation.md#workspace-agents) can be registered via Coder's REST API, such as an ongoing data science pipeline.
49
49
50
50
Your workspace's auto-stop behavior can be seen in the dashboard. Template settings in Coder determine if users can alter their workspace schedules.
51
51
52
52

53
53
54
-
### Max session length (enterpise)
55
-
56
-
Workspaces may also have a max session length, which enforces a stop or restart even if you are actively using your workspace.
57
-
58
-

54
+
### Auto-stop schedule
59
55
56
+
Some templates may have an auto-stop schedule that ensures workspaces are stopped
57
+
or restarted at a specific interval, regardless of activity. This occurs during quiet hours (see below) to avoid interrupting users..
60
58
#### Quiet hours
61
59
62
-
To avoid interruptions, users can establish their "quiet hours", which are by default set from midnight to 3 AM, during which these actions occur. Users can also extend the deadline by up to 2 hours if they are in the middle of important work.
60
+
To avoid interruptions, you can establish "quiet hours", which are by default set from midnight to 3 AM, during which these actions occur. Users can also extend the deadline by up to 2 hours if they are in the middle of important work.
63
61
64
62
Example:
65
63
@@ -79,13 +77,6 @@ user bumps
79
77
80
78
Admin controls around workspace auto-stop are an enterprise feature. [Learn more here](./admin/template)
81
79
82
-
### Max lifetime
83
-
84
-
Max lifetime is a template-level setting that determines the number of hours a
85
-
workspace can run before it is automatically shutdown, regardless of any
86
-
active connections. This setting ensures workspaces do not run in perpetuity
87
-
when connections are left open inadvertently.
88
-
89
80
## Updating workspaces
90
81
91
82
Use the following command to update a workspace to the latest template version.
0 commit comments