Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are a few ways to ensure that a notification email is sent only once despite multiple failures of a scheduled job:

  1. Use a flag: When the scheduled job fails, set a flag indicating that a notification email has already been sent. This way, if the job fails again, the system will see the flag and not send another notification email.

  2. Set a time limit: Configure the notification system to only send an email if the job has failed a certain number of times within a specific time limit. For example, the system could send an email only if the job fails three times within 24 hours.

  3. Use a manual override: Allow the administrator to manually override the notification system if they determine that multiple notification emails are necessary. This way, the system can be set to send only one email by default, but the administrator can choose to send additional emails if needed.

  4. Use a separate email account: Create a separate email account for notifications related to the scheduled job. This way, if the job fails multiple times, the notification email will be sent only once to the designated email account.