Macro run failure notification to email

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
jpf1281
Newbie
Posts: 11
Joined: Mon Jun 14, 2021 1:40 pm

Macro run failure notification to email

Post by jpf1281 » Thu Aug 26, 2021 6:52 pm

I am trying to figure out a way to have a macro send me an email if the macro fails or hangs for a certain amount of time and I am really not sure how to do this, or if it can be done. Any help would be appreciated.

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Macro run failure notification to email

Post by Grovkillen » Thu Aug 26, 2021 6:56 pm

Sure you can. My take on this is to build a watchdog which is looking for a heartbeat from the scripts that it's monitoring. The scripts themselves will make sure that this heartbeat is updated within a known time interval. If the watchdog isn't detecting a heartbeat it will wait x number of cycles and if the heartbeat is still not detected it will act.
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts