Idea #2679
open
[API] If enabled by user via "preferences" checkbox in Workbench, notification service sends email to owner when a workflow finishes, fails, or is failing
Added by Tom Clegg over 10 years ago.
Updated 9 months ago.
Release relationship:
Auto
Description
- Concepts
- Per-user preference to enable emails notifications:
- On completion
- On failure of a child job (avoiding multiple notifications if more than one child fails)
- Only toplevel jobs should send notifications, so in the case of a "will fail" state, only one is sent.
- For now, only the project owner will be notified and not any other user that has access to it
- The email address that will be used to send the notifications to is the one being used for login, and not the one provided on the user's profile
- Implementation
- API Server
- A server setting establishing the default behavior for users that don't have the preference explicitly set
- A server setting establishing if emails notifications are enabled or not.
- Add a new mailer like
services/api/app/mailers/admin_notifier.rb
- Add necessary callbacks on containers/pipelines updates to call the mailer when needed
- Workbench
- New UI element to show & change user preference on the user’s profile page, under a new "Preferences" section.
- Documentation updates
- Target version set to Deferred
- Subject changed from If enabled by user, notification service sends email to owner when a pipeline instance finishes or fails. to If enabled by user via "preferences" checkbox in Workbench, notification service sends email to owner when a pipeline instance finishes or fails.
- Subject changed from If enabled by user via "preferences" checkbox in Workbench, notification service sends email to owner when a pipeline instance finishes or fails. to [?] If enabled by user via "preferences" checkbox in Workbench, notification service sends email to owner when a pipeline instance finishes or fails.
- Subject changed from [?] If enabled by user via "preferences" checkbox in Workbench, notification service sends email to owner when a pipeline instance finishes or fails. to [API] If enabled by user via "preferences" checkbox in Workbench, notification service sends email to owner when a pipeline instance finishes or fails.
- Target version changed from Deferred to To Be Groomed
- Related to Idea #10798: Notification of job completion added
- Related to deleted (Idea #10798: Notification of job completion)
- Has duplicate Idea #10798: Notification of job completion added
- Target version changed from To Be Groomed to Arvados Future Sprints
- Target version changed from Arvados Future Sprints to To Be Groomed
- Story points deleted (
2.0)
- Subject changed from [API] If enabled by user via "preferences" checkbox in Workbench, notification service sends email to owner when a pipeline instance finishes or fails. to [API] If enabled by user via "preferences" checkbox in Workbench, notification service sends email to owner when a workflow finishes, fails, or is failing
If requested by user preference, notify the user when a workflow completes successfully, fails, or has a job which has failed (ie overall workflow is about to fail).
- Description updated (diff)
- Description updated (diff)
- Story points set to 2.0
- Target version changed from To Be Groomed to Arvados Future Sprints
- Target version deleted (
Arvados Future Sprints)
- Target version set to Future
Also available in: Atom
PDF