Ask Your Question
0

How can a notification email be sent only once despite multiple failures of a scheduled job?

asked 2021-05-07 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-17 13:00:00 +0000

qstack gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-07 11:00:00 +0000

Seen: 9 times

Last updated: Nov 17 '22