- Notifications
You must be signed in to change notification settings - Fork928
Description
So, I have a workspace that it scheduled to shut down in an hour. I want to edit my workspace schedule (which is a separate idea than extending my lease). I change my TTL in the Edit Schedule to one hour, and then boom, my workspace turns off.
I looked at the code a bit and have no idea what's causing this behavior.
The fact that "Edit Schedule" modifies my active lease is very hard to reason about as a user. Why does it add the TTL to the lease vs. adding the TTL to my current time? Why would I expect it to change the lease at all?
Also.. we use the word TTL around the product to mean both the schedule and the active lease. This has been confusing as I navigate the code, and also as a user. (See#2224 issue, which can be interpreted multiple ways).
What I suggest is we remove the ability for "Schedule" edits to affect the active lease. A lease is created on Workspace Start and then can only be modified directly. We can expose the ability for the user to edit the active lease separately from the schedule, as describedhere.