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
For dev environments specifically, I don't usually want an environment to last a specific duration. I want the environment to shutdown at a specific time. In other words, regardless of when I start working, I want it to shut down at 6:00. Currently there's no way to do this other than editing my workstation yml each time, and figuring out in my head how many hours I want to run right now.
Solution
It would be a usability enhancement for me to just type dstack apply --shutdown-time=6:00pm .... Alternatively, a minimal enhancement would be to allow the apply command line to override settings in the yaml. So in that case dstack apply --config-override="max_duration: 6h" or something to that effect.
Workaround
I have written scripts to take a templated dev environment yaml and insert the values I want, but this is a very roundabout solution.
Would you like to help us implement this feature by sending a PR?