Skip to content

Send an email to the user when one of their workspace is going to be shutdown/deleted #3380

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
Tracked by #5150
matifali opened this issue Aug 4, 2022 · 13 comments
Closed
Tracked by #5150
Labels
api Area: HTTP API customer-requested Features requested by enterprise customers. Only humans may set this.

Comments

@matifali
Copy link
Member

matifali commented Aug 4, 2022

Please add the ability to email the users when one of their workspaces is nearing a scheduled shutdown.
Currently, the user does not have any notification if their workspace is shutting down. Please add some kind of notification to notify the users.

Also, the shutdown should be postponed automatically if the code is running.

@sharkymark
Copy link
Contributor

I like these ideas. 👀

@kylecarbs
Copy link
Member

It'd be nice if this was implemented in an abstract way. I can imagine a Slack notification being nice for this too!

@kylecarbs kylecarbs changed the title Send an email to the user when one of their workspace is going to shutdown. Send an email to the user when one of their workspace is going to shutdown Aug 24, 2022
@kylecarbs kylecarbs added feature api Area: HTTP API labels Aug 24, 2022
@github-actions
Copy link

This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Oct 26, 2022
@matifali
Copy link
Member Author

So any slack or email notifications?

@github-actions github-actions bot removed the stale This issue is like stale bread. label Oct 27, 2022
@mafredri
Copy link
Member

mafredri commented Nov 3, 2022

@matifali how would you expect to configure email sending? Would you want to provide Coder with configurations for using an SMTP server (smtp.host.com/user/pass/port) or would you expect Coder to e.g. use the mail server configured on the host (if there is one)?

@matifali
Copy link
Member Author

matifali commented Nov 3, 2022

@matifali, how would you expect to configure email sending? Would you want to provide Coder with configurations for using an SMTP server (smtp.host.com/user/pass/port)

This is simpler and can be used.

@dcarrion87
Copy link
Contributor

dcarrion87 commented Dec 13, 2022

Ooo this would be nice for slack! Abstract way instead of just email for sure.

@github-actions
Copy link

This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Mar 14, 2023
@matifali
Copy link
Member Author

bump

@mafredri mafredri removed the stale This issue is like stale bread. label Mar 14, 2023
@Kira-Pilot Kira-Pilot self-assigned this Mar 28, 2023
@matifali
Copy link
Member Author

matifali commented May 18, 2023

Hi @Kira-Pilot, if you are working on this, I suggest that we specify an SMTP server address and login credentials and then Coder can send notifications by using that.

Something like

CODER_SMTP_SERVER_ADDRESS=smtp.mycompany.com
CODER_SMTP_SERVER_PORT=587
CODER_SMTP_SERVER_USERNAME=user@mycompany.com
CODER_SMTP_SERVER_PASSWORD=secret42

Something like https://pkg.go.dev/net/smtp can be used

@Kira-Pilot
Copy link
Member

@matifali I like that idea. For this first pass, we are going to add VS Code notifications and nothing more. We want to give a notifications feature more thought instead of jamming it into the Workspace Actions RFC work, which I've linked above.
I'm going to take my name off this ticket because I don't think I'm fully meeting your feature request here; however, this is definitely something we want to do down the line!

@Kira-Pilot Kira-Pilot removed their assignment May 18, 2023
@bpmct
Copy link
Member

bpmct commented Jun 21, 2023

Going to close this one for now. We are implementing "quiet hours" which ensures a workspace will only shut down in the following cases:

  • User is inactive
  • Workspace is reaching its max window (e.g. has policy to restart every week)

Down the road, I'd love to add email support

@bpmct bpmct closed this as completed Jun 21, 2023
@matifali matifali closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2023
@matifali matifali changed the title Send an email to the user when one of their workspace is going to shutdown Send an email to the user when one of their workspace is going to be shutdown/deleted Feb 12, 2024
@stirby stirby added the customer-requested Features requested by enterprise customers. Only humans may set this. label Feb 12, 2024
@matifali matifali reopened this Feb 12, 2024
@stirby
Copy link
Collaborator

stirby commented Feb 12, 2024

Recently requested by an enterprise customer.

@sreya sreya closed this as completed Apr 4, 2024
@matifali matifali closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API customer-requested Features requested by enterprise customers. Only humans may set this.
Projects
None yet
Development

No branches or pull requests

9 participants