Skip to content

Conversation

@kunwp1
Copy link
Contributor

@kunwp1 kunwp1 commented Sep 16, 2024

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.
Screen.Recording.2024-09-16.at.10.30.57.AM.mov

@kunwp1 kunwp1 added the feature label Sep 16, 2024
@kunwp1 kunwp1 requested a review from Yicong-Huang September 16, 2024 17:32
@kunwp1 kunwp1 self-assigned this Sep 16, 2024
@kunwp1 kunwp1 requested review from aglinxinyuan and removed request for Yicong-Huang September 17, 2024 06:18
Copy link
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kunwp1 kunwp1 merged commit 14ed53d into master Sep 17, 2024
@kunwp1 kunwp1 deleted the chris-email-notification branch September 17, 2024 15:14
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
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 <kunwoopark@Kunwoos-MacBook-Pro.local>
Co-authored-by: linxinyuan <linxinyuan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants