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
{{ message }}
Repository navigation
cli: support enabling/disabling auto start / auto stop #813
As a user, I want to be able to enable and disable autostart / autostop for my workspaces using the CLI:
Examples:
coder workspaces autostart enable my-workspace '30 9 * * 1-5' will enable workspace autostart for my-workspace every weekday at 0930 my local time (whatever my system time location is set to).
coder workspaces autostart disable my-workspace will disable workspace autostart.
coder workspaces autostop enable my-workspace '59 23 * * 1-5 Asia/Kolkata' will enable workspace autostop every day at 23:59 India time.
I preferred the standard crontab format. It is already well documented throughout the internet, and something most DevOps people (our ideal configurer) will be familiar with. If we want to help them a little, we could include a link to crontab.guru.
This is in the spirit of invent as little as possible and as a last resort.
Activity
johnstcn commentedon Apr 12, 2022
Fixed by #922.
ammario commentedon May 12, 2022
Love the crontab format
johnstcn commentedon May 12, 2022
I actually ended up changing the CLI for it to make it slightly friendlier, it's now more like:
It's still all crontab under the hood though!
ammario commentedon May 13, 2022
I preferred the standard crontab format. It is already well documented throughout the internet, and something most DevOps people (our ideal configurer) will be familiar with. If we want to help them a little, we could include a link to crontab.guru.
This is in the spirit of invent as little as possible and as a last resort.
ammario commentedon May 13, 2022
In addition to that problem, I do not see the auto start functionality in the CLI, so I think this was mistakenly closed.
johnstcn commentedon May 13, 2022
@ammario It's hidden until done. See: #1418