Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Auto ON/OFF Support #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
misskniss opened this issue Feb 11, 2022 · 1 comment
Closed
4 tasks done

Auto ON/OFF Support #269

misskniss opened this issue Feb 11, 2022 · 1 comment

Comments

@misskniss
Copy link

misskniss commented Feb 11, 2022

Note this is an "epic of epics" - it contains the beta and enterprise milestone epics.



Breakout Discussion

March 24, 2022
RFC

Note scheduled Auto On/Off is a PAID feature.

Plan

  • Data model : Columns to workspace table and additional table (see RFC)
  • workspace auto off
  • remove org level auto on/off table
  • add auto start enable, auto stop enable, auto start_at and autostop_at
  • workspace lifecycle job table
  • Add required methods for workspace auto start and auto stop
  • Auto start scheduler implementation
  • Auto start executor implementation
  • Implement workspace start - Done
  • implement workspace stop. - Done
  • support updating workspaces via HTTP API
  • support updating workspaces via CLI
    Cli commands:
  • autostart enable
  • disable
  • some kind of scheduling command logic (cron syntax?)
  • extension command
  • user notifications and backoff timing (in coder agent to write to all connect sessions, polling coder trigger pgnotify) Write to all TTY that is connected. (if we do this for SSH it would not work for openssh. wall command . Warning - wall command is not for windows.)
  • CLI system notifications, tray notifications (if we do this we may not have to to the wall - write all - approach)
  • somesort of default auto off when you create a workspace so they do not stay forever on when a new one is created. "This workspace will automatically turn of in 8 hours". Maybe a daily shutoff point per workspace. Auto off job created as creation time + lease on create. Enable this globally? or User level?
  • Tyler: customers have expressed wanting to define things at the org level and users have the opportunity to override those org wide settings.
  • It is 8 hours and not changeable unless you upgrade?

Frontend:

  • design the component for the Auto On/Off (workspaces/card that opens other forms /dialog for adding/editing schedules. Do we have this in the workspace creation modal and/or in settings for the workspace post-create.
  • Implement the user alert that the workspace is about to auto shut off
  • countdown visual component to show how much time is left before shut off - (with a snooze and/or dismiss? )
  • notifications, snack bars and toasts may need to be implemented

Post MVP

  • Create a feature allowing an On/Off schedule to be suspended.
  • Reports view for costs. Could start in the CLI and later be added to frontend. Org and user level over some default or specifiable window of time.
@misskniss misskniss added the Epic label Feb 11, 2022
@misskniss misskniss added this to the V2 Alpha milestone Feb 11, 2022
@misskniss misskniss added the RFC label Feb 11, 2022
@misskniss misskniss modified the milestones: V2 Alpha, Enterprise MVP Mar 29, 2022
@misskniss misskniss modified the milestones: Enterprise MVP , V2 Beta Apr 2, 2022
@greyscaled greyscaled changed the title Auto ON/OFF Support Auto ON/OFF Saga Apr 20, 2022
@greyscaled greyscaled changed the title Auto ON/OFF Saga Auto ON/OFF Initiative Apr 20, 2022
@greyscaled greyscaled changed the title Auto ON/OFF Initiative Auto ON/OFF Initiative [epic of epics] Apr 20, 2022
@misskniss misskniss modified the milestone: V2 Beta May 3, 2022
@misskniss misskniss changed the title Auto ON/OFF Initiative [epic of epics] Auto ON/OFF Support May 6, 2022
@ketang
Copy link
Contributor

ketang commented Jun 22, 2022

Scheduling is good enough now

@ketang ketang closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants