Notifications are not working for scheduled job log

Add a mail notification for scheduled job logs, when jobs is failed notification should triggered

on value channge - status
condition : doc.status==“Failed”

Same issue.

How can we receive a notification when a scheduled job has failed ?