Post

1 follower Follow
0
Avatar

How to set up notifications

Question

How to set up the *NOTIFY_*_EMAIL parameters correctly and what options are available?

Answer

There are three parameters to consider:

  • NOTIFY_SUCCESS_EMAIL stands for list progress and heartbeat emails.
  • NOTIFY_ALERT_EMAIL stands for all the notifications except the list progress and heartbeat emails.
  • NOTIFY_ALL_EMAIL means all notifications, i.e. both success and alert notifications.

Each process (FETCHER, MINE, APPLY) has its own set of parameters:

FETCHER.NOTIFY_SUCCESS_EMAIL = OFF
FETCHER.NOTIFY_ALERT_EMAIL = OFF
FETCHER.NOTIFY_ALL_EMAIL = OFF
MINE.NOTIFY_ALERT_EMAIL = OFF
MINE.NOTIFY_ALL_EMAIL = john@company.com
MINE.NOTIFY_SUCCESS_EMAIL = steve@company.com
APPLY.NOTIFY_ALERT_EMAIL = john@company.com
APPLY.NOTIFY_SUCCESS_EMAIL = steve@company.com
APPLY.NOTIFY_ALL_EMAIL = OFF

In the previous example the following is true:

  1. Fetcher process does not send any notifications
  2. Mine process sends list progress and heartbeat emails to Steve.
  3. Mine process sends list progress and heartbeat emails as well as all alert emails to John
  4. Apply process sends alert emails to John.
  5. Apply process sends list progress and heartbeat emails to Steve.

Specifying common variable values:

All variables can be also set one value for all the processes. This is done by replacing the process name with the star character. Such a value, however, has a lower priority than the value set for the particular process. 

For example the following settings cause the apply server to send all the emails to John but not Steve, while the mine and fetcher servers will send emails only to Steve. 

APPLY.NOTIFY_ALL_VALUE = john@company.com
*.NOTIFY_ALL_VALUE = steve@company.com
Jakub Sejba Answered

Please sign in to leave a comment.