-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Email Notification Logic (#2837)
This PR introduces functionality to send an email notification whenever a workflow transitions from a running state to a non-running state (e.g., `Completed`, `Failed`, `Killed`, or `Paused`). This feature was requested by the bioinformatics team at Cornell University to facilitate their long-running workflows. They wanted to be notified once the execution of their workflow is finished. ### Implementation Details A new `sendWorkflowStatusEmail` method has been added to handle the construction of the email notification, which includes details such as the workflow ID, name, state, timestamp, and a link to the dashboard. This method is triggered on the frontend whenever it detects a status change from the backend. ### Setup To enable this functionality, update the following parameters in the core/amber/src/main/resources/application.conf file: 1. Set `user-sys.enabled` to true. 2. Set `user-sys.google.clientId` to your Google API client ID. 3. Set `user-sys.google.smtp.gmail` to your Gmail ID (ensure that IMAP is enabled for this account). 4. Set `user-sys.google.smtp.password` to your Gmail password. https://github.com/user-attachments/assets/dd72af90-b8a8-45ef-9bcc-1ba628e55e9a --------- Co-authored-by: Kunwoo Park <[email protected]> Co-authored-by: linxinyuan <[email protected]>
- Loading branch information
1 parent
dbf3366
commit 4bc7c61
Showing
4 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters