Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a07ca94

Browse files
authored
Increase default auto-stop to 12h (#3631)
Resolves #3462. And, clarify language to resolve #3509.
1 parent 8ca3fa9 commit a07ca94

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

coderd/workspaces.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
"github.com/coder/coder/codersdk"
3333
)
3434

35-
const workspaceDefaultTTL = 2 * time.Hour
35+
const workspaceDefaultTTL = 12 * time.Hour
3636

3737
var (
3838
ttlMin = time.Minute //nolint:revive // min here means 'minimum' not 'minutes'

site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const Language = {
5454
timezoneLabel: "Timezone",
5555
ttlLabel: "Time until shutdown (hours)",
5656
ttlCausesShutdownHelperText: "Your workspace will shut down",
57-
ttlCausesShutdownAfterStart: "after start",
57+
ttlCausesShutdownAfterStart: "after its next start",
5858
ttlCausesNoShutdownHelperText: "Your workspace will not automatically shut down.",
5959
formTitle: "Workspace schedule",
6060
startSection: "Start",

site/src/pages/WorkspaceSchedulePage/ttl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface AutoStop {
55

66
export const emptyTTL = 0
77

8-
export const defaultTTL = 8
8+
export const defaultTTL = 12
99

1010
const msToHours = (ms: number) => Math.round(ms / (1000 * 60 * 60))
1111

0 commit comments

Comments
 (0)