Run Script on Failure

Want something added? Ask for it here.
Post Reply
Jumbs
Newbie
Newbie
Posts: 38
Joined: May 2nd, 2011, 4:50 pm

Run Script on Failure

Post by Jumbs »

I have a lot of automation scripts. So many that i forget to look at the interface and miss a failed file.
An ability to set a Global script to run on Failure would be nice for alerting and some management.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Run Script on Failure

Post by shypike »

Currently you have an option to send an email when a job fails.
It's also possible to always run the script, but that will mean that SABnzbd will
first try to unpack, so that's probably not what you want.
e-ric
Newbie
Newbie
Posts: 1
Joined: June 15th, 2012, 5:16 pm

Re: Run Script on Failure

Post by e-ric »

Hi shypike, can you please guide us to how to run a script on every jobs end ?
I have been searching through the site, but only found the pre-queue and post-processing script.

I use sabnzbd on a linux VM myself and created scripts to write entries on queueing and finishing jobs to the syslog, which I monitor for certain strings.
It would be nice if post processing scripts could also be applied if a job fails and error code would indicate something like "out of retention" in the same way it indicates "failed verification".
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Help With Categories

Post by shypike »

Set a script for the default category.
If you disable "safe post processing" your script will always run;
the parameters will tell you the result.
See our Wiki.
Post Reply