I am currently working on scheduling some python tasks for different purposes, but I want to get notified about the failure of python code execution if it doesn't reach the end of line.
I have researched different solutions like, using management console to use event log handlers to trigger email notification, but this method is deprecated and only works if a program fails to start not if it fails to execute all the way. Further, Tried different python packages to get the desired result but no package shows the desired effect on file level.
So, I am looking for a way that notifies email/whatsapp based on failure of a scheduled task or failure of python file execution on File-level.