- Notifications
You must be signed in to change notification settings - Fork928
Closed
Description
User Story 👥
As a user with a workspace that has a ttl, I'd like to use the CLI to extend my lease.
Details
There are two types of extension scenarios:reactive andpre-emptive. Underneath the hood,
these are effectively the same and can be re-worded as: "I may extend well before shutdown, or as a CTA
when my lease is almost up (example via notification)".
Reactive Extension in a CLI-only approach
When we notify users that their workspace is shutting down (ie:#1414 ), we might give instructions or a
CTA.
Pre-emptive Extension ina CLI-only approach
We may expose an extension command that looks something like:
coder extend <workspace-name> [time]
If[time]
is not supplied, we default to90 mins
.[time]
may optionally be specified. We should set
an upper bound on[time]
. TBD what that upper bound is, but at least two approaches are:
- A hard-set upper bound (example 24 hours)
- The difference between NOW and the next scheduled start time
Acceptance Criteria
- A CLI command that extends a lease