Title: feat(cli): add `--dormancy-threshold` to `coder templates push` · Issue #32002 · coder/coder · GitHub
Open Graph Title: feat(cli): add `--dormancy-threshold` to `coder templates push` · Issue #32002 · coder/coder
X Title: feat(cli): add `--dormancy-threshold` to `coder templates push` · Issue #32002 · coder/coder
Description: Part of #31998. coder templates create --dormancy-threshold sets how long a workspace can be inactive before it becomes dormant ("Dormancy threshold" in the UI). coder templates push has no equivalent flag. What to change New template: s...
Open Graph Description: Part of #31998. coder templates create --dormancy-threshold sets how long a workspace can be inactive before it becomes dormant ("Dormancy threshold" in the UI). coder templates push has no equival...
X Description: Part of #31998. coder templates create --dormancy-threshold sets how long a workspace can be inactive before it becomes dormant ("Dormancy threshold" in the UI). coder templates push has ...
Opengraph URL: https://github.com/coder/coder/issues/32002
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(cli): add `--dormancy-threshold` to `coder templates push`","articleBody":"Part of #31998.\n\n`coder templates create --dormancy-threshold` sets how long a workspace can be inactive before it becomes dormant (\"Dormancy threshold\" in the UI). `coder templates push` has no equivalent flag.\n\n**What to change**\n- New template: set `CreateTemplateRequest.TimeTilDormantMillis`.\n- Existing template: send `UpdateTemplateMeta.TimeTilDormantMillis` only when the user sets the flag.\n- **License check required.** This setting needs the Advanced Template Scheduling entitlement. On unlicensed (AGPL) deployments, the server [keeps the old value without returning an error](https://github.com/coder/coder/blob/e6a795b4c3b00a5c1e576137f3540e9a9fdbbe76/coderd/schedule/template.go#L227-L236), so `push` would look like it worked when it didn't. Check entitlements first, the same way [\\`create\\`](https://github.com/coder/coder/blob/e6a795b4c3b00a5c1e576137f3540e9a9fdbbe76/cli/templatecreate.go#L50-L71) and [\\`edit\\`](https://github.com/coder/coder/blob/e6a795b4c3b00a5c1e576137f3540e9a9fdbbe76/cli/templateedit.go#L63-L75) do. `--failure-ttl`, `--dormancy-threshold` and `--dormancy-auto-deletion` should share one check.\n\n**Scope:** Small (S), about 20 lines plus a test. Add another 20 to 30 lines for whichever of the three adds the shared license check first.\n\nCreated on behalf of @angrycub\n","author":{"url":"https://github.com/apps/coder","@type":"Person","name":"coder"},"datePublished":"2026-11-10T16:36:02Z","url":"https://github.com/coder/coder/issues/32002"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f40803ee-859e-4df2-11f3-eff9a3df09a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED5C:27A224:15398D:1C7A3B:6B042EFF |
| html-safe-nonce | 56daa55d339b10d88558a4a9bccd642ab6171d2020704b55bb48c4e74ca85adc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDVDOjI3QTIyNDoxNTM5OEQ6MUM3QTNCOjZCMDQyRUZGIiwidmlzaXRvcl9pZCI6IjU2OTg5ODYwNTA5NTM5NDg5MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1b9098d894dd88f7b89121ca0c38f7d3f5ecf471aef491d923af1d17f54e9d45 |
| hovercard-subject-tag | issue:6311274458 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/32002/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8c5383fbe3773e89f272ef4e6eeb86eccd73e4f8dc39b7aeef4933ae19dd263/coder/coder/issues/32002 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8c5383fbe3773e89f272ef4e6eeb86eccd73e4f8dc39b7aeef4933ae19dd263/coder/coder/issues/32002 |
| og:image:alt | Part of #31998. coder templates create --dormancy-threshold sets how long a workspace can be inactive before it becomes dormant ("Dormancy threshold" in the UI). coder templates push has no equival... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coder[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width