AWS Thinkbox Discussion Forums

Post Job Script - Raise Error / Force Fail

Hi Everyone,



Is there a way to Return an Exit Code, or raise an error from within a Post Job VBScript?



I want to be able to Fail a Post Job Script and then have another Slave try to execute it.



All my searches say to use WScript.Quit(ExitCode), but WScript isn’t in Deadline’s VBScript engine, right?



Thanks for your help,

Paul

Hi Paul,



For exiting a script prematurely, you can just raise an error. Deadline

doesn’t look for return codes from a script, but it does catch errors,

so you should be able to just throw an error to get the script to exit.

For example:



Err.Raise 8, “Main”, “Something bad happened”



Here is some info on raising an error:

http://www.csidata.com/custserv/onlinehelp/vbsdocs/vbs357.htm



Hope this helps!



Cheers,

This works fine… and the “Something bad happened” string ends up in the Deadline Error log which is great.



Thanks for your help Ryan









-Paul

Privacy | Site terms | Cookie preferences