|
| 1 | +# Workspace Scheduling |
| 2 | + |
| 3 | +You can configure a template to control how workspaces are started and stopped. |
| 4 | +You can also manage the lifecycle of failed or inactive workspaces. |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +## Schedule |
| 9 | + |
| 10 | +Template [admins](../admin/users.md) may define these default values: |
| 11 | + |
| 12 | +- **Default autostop**: How long a workspace runs without user activity before |
| 13 | + Coder automatically stops it. |
| 14 | +- **Max lifetime**: The maximum duration a workspace stays in a started state |
| 15 | + before Coder forcibly stops it. |
| 16 | + |
| 17 | +## Allow users scheduling |
| 18 | + |
| 19 | +For templates where a uniform autostop duration is not appropriate, admins may |
| 20 | +allow users to define their own autostart and autostop schedules. Admins can |
| 21 | +restrict the days of the week a workspace should automatically start to help |
| 22 | +manage infrastructure costs. |
| 23 | + |
| 24 | +## Failure cleanup |
| 25 | + |
| 26 | +Failure cleanup defines how long a workspace is permitted to remain in the |
| 27 | +failed state prior to being automatically stopped. Failure cleanup is an |
| 28 | +enterprise-only feature. |
| 29 | + |
| 30 | +## Dormancy threshold |
| 31 | + |
| 32 | +Dormancy Threshold defines how long Coder allows a workspace to remain inactive |
| 33 | +before being moved into a dormant state. A workspace's inactivity is determined |
| 34 | +by the time elapsed since a user last accessed the workspace. A workspace in the |
| 35 | +dormant state is not eligible for autostart and must be manually activated by |
| 36 | +the user before being accessible. Coder stops workspaces during their transition |
| 37 | +to the dormant state if they are detected to be running. Dormancy Threshold is |
| 38 | +an enterprise-only feature. |
| 39 | + |
| 40 | +## Dormancy auto-deletion |
| 41 | + |
| 42 | +Dormancy Auto-Deletion allows a template admin to dictate how long a workspace |
| 43 | +is permitted to remain dormant before it is automatically deleted. Dormancy |
| 44 | +Auto-Deletion is an enterprise-only feature. |
0 commit comments