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
returnxerrors.Errorf("--failure-ttl and --inactivityTTL are experimental features. Use the workspace_actions CODER_EXPERIMENTS flag to set these configuration values.")
returnxerrors.Errorf("--failure-ttl and --inactivityTTL are experimental features. Use the workspace_actions CODER_EXPERIMENTS flag to set these configuration values.")
returnxerrors.Errorf("your deployment appears to be an AGPL deployment, so you cannot set --max-ttl, --allow-user-autostart=false or --allow-user-autostop=false")
55
+
returnxerrors.Errorf("your deployment appears to be an AGPL deployment, so you cannot set --max-ttl, --failure-ttl, --inactivityTTL, --allow-user-autostart=false or --allow-user-autostop=false")
returnxerrors.Errorf("your license is not entitled to use advanced template scheduling, so you cannot set --max-ttl, --allow-user-autostart=false or --allow-user-autostop=false")
61
+
returnxerrors.Errorf("your license is not entitled to use advanced template scheduling, so you cannot set --max-ttl, --failure-ttl, --inactivityTTL, --allow-user-autostart=false or --allow-user-autostop=false")
Description: "Edit the template maximum time before shutdown - workspaces created from this template must shutdown within the given duration after starting. This is an enterprise-only feature.",
111
127
Value: clibase.DurationOf(&maxTTL),
112
128
},
129
+
{
130
+
Flag: "failure-ttl",
131
+
Description: "Specify a failure TTL for workspaces created from this template. This licensed feature's default is 0h (off).",
132
+
Default: "0h",
133
+
Value: clibase.DurationOf(&failureTTL),
134
+
},
135
+
{
136
+
Flag: "inactivity-ttl",
137
+
Description: "Specify an inactivity TTL for workspaces created from this template. This licensed feature's default is 0h (off).",
138
+
Default: "0h",
139
+
Value: clibase.DurationOf(&inactivityTTL),
140
+
},
113
141
{
114
142
Flag: "allow-user-cancel-workspace-jobs",
115
143
Description: "Allow users to cancel in-progress workspace jobs.",
validErrs=append(validErrs, codersdk.ValidationError{Field: "default_ttl_ms", Detail: "Must be less than or equal to max_ttl_ms if max_ttl_ms is set."})
236
244
}
245
+
iffailureTTL<0 {
246
+
validErrs=append(validErrs, codersdk.ValidationError{Field: "failure_ttl_ms", Detail: "Must be a positive integer."})
247
+
}
248
+
ifinactivityTTL<0 {
249
+
validErrs=append(validErrs, codersdk.ValidationError{Field: "inactivity_ttl_ms", Detail: "Must be a positive integer."})
0 commit comments