Story #2679

[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 4 years ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
2.0

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

Related issues

Has duplicate Arvados - Feature #3829: [Crunch] Email notification when pipeline finishes, depending on user prefs flagDuplicate2014-09-06

Has duplicate Arvados - Story #10798: Notification of job completionDuplicate2017-01-03

History

#1 Updated by Tom Clegg over 4 years ago

  • Target version set to Deferred

#2 Updated by Tom Clegg over 4 years ago

  • 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.

#3 Updated by Tom Clegg over 4 years ago

  • 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.

#4 Updated by Tom Clegg over 4 years ago

  • 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.

#5 Updated by Tom Morris 6 months ago

  • Target version changed from Deferred to To Be Groomed

#6 Updated by Tom Morris 6 months ago

  • Related to Story #10798: Notification of job completion added

#7 Updated by Tom Morris 6 months ago

  • Related to deleted (Story #10798: Notification of job completion)

#8 Updated by Tom Morris 6 months ago

  • Has duplicate Story #10798: Notification of job completion added

#9 Updated by Tom Morris 5 months ago

  • Target version changed from To Be Groomed to Arvados Future Sprints

#10 Updated by Tom Morris 5 months ago

  • Target version changed from Arvados Future Sprints to To Be Groomed
  • Story points deleted (2.0)

#11 Updated by Tom Morris 5 months ago

  • 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).

#12 Updated by Lucas Di Pentima 5 months ago

  • Description updated (diff)

#13 Updated by Lucas Di Pentima 5 months ago

  • Description updated (diff)
  • Story points set to 2.0

#14 Updated by Tom Morris 3 months ago

  • Target version changed from To Be Groomed to Arvados Future Sprints

Also available in: Atom PDF