mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Increase default auto-stop to 12h (#3631)
Resolves #3462. And, clarify language to resolve #3509.
This commit is contained in:
@@ -32,7 +32,7 @@ import (
|
||||
"github.com/coder/coder/codersdk"
|
||||
)
|
||||
|
||||
const workspaceDefaultTTL = 2 * time.Hour
|
||||
const workspaceDefaultTTL = 12 * time.Hour
|
||||
|
||||
var (
|
||||
ttlMin = time.Minute //nolint:revive // min here means 'minimum' not 'minutes'
|
||||
|
||||
@@ -54,7 +54,7 @@ export const Language = {
|
||||
timezoneLabel: "Timezone",
|
||||
ttlLabel: "Time until shutdown (hours)",
|
||||
ttlCausesShutdownHelperText: "Your workspace will shut down",
|
||||
ttlCausesShutdownAfterStart: "after start",
|
||||
ttlCausesShutdownAfterStart: "after its next start",
|
||||
ttlCausesNoShutdownHelperText: "Your workspace will not automatically shut down.",
|
||||
formTitle: "Workspace schedule",
|
||||
startSection: "Start",
|
||||
|
||||
@@ -5,7 +5,7 @@ export interface AutoStop {
|
||||
|
||||
export const emptyTTL = 0
|
||||
|
||||
export const defaultTTL = 8
|
||||
export const defaultTTL = 12
|
||||
|
||||
const msToHours = (ms: number) => Math.round(ms / (1000 * 60 * 60))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user