Run Script on Failure

Want something added? Ask for it here.

Run Script on Failure

Postby Jumbs » May 21st, 2012, 10:33 pm

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.
Jumbs
Newbie
Newbie
 
Posts: 4
Joined: May 2nd, 2011, 5:50 pm

Re: Run Script on Failure

Postby shypike » May 22nd, 2012, 3:18 am

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16531
Joined: January 18th, 2008, 1:49 pm

Re: Run Script on Failure

Postby e-ric » June 15th, 2012, 6:38 pm

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".
e-ric
Newbie
Newbie
 
Posts: 1
Joined: June 15th, 2012, 6:16 pm

Re: Help With Categories

Postby shypike » June 16th, 2012, 2:22 am

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16531
Joined: January 18th, 2008, 1:49 pm


Return to Feature Requests