Page 1 of 1

Run Script on Failure

Posted: May 21st, 2012, 9:33 pm
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.

Re: Run Script on Failure

Posted: May 22nd, 2012, 2:18 am
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.

Re: Run Script on Failure

Posted: June 15th, 2012, 5:38 pm
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".

Re: Help With Categories

Posted: June 16th, 2012, 1:22 am
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.