When it executes nuke, it fails. It
wasn't saying why, so we added some
diagnostics and found it was complaining that it couldn't
find the executable..
Oh, and to solve that issue..
Seems the python nuke submit script "submit_nuke.py"
in Rush 103.07 (and older)
omits checking for command not found errors.
To fix that, add the following lines (shown in green):
# License error?
if exitcode == 100:
sys.stderr.write("--- NUKE LICENSE ERROR:
EXITCODE=%d\n" % exitcode)
# Licpause+Retry?
if fields["LicenseBehavior"] ==
"Licpause+Retry":
sys.stderr.write("--- LICENSE PAUSE +
RETRY\n")
Rush.RunCommand("rush -fu -licpause > "
+ Rush.DevNull() + " 2>&1")
Rush.RunCommand("rush -fu -notes " +
os.environ["RUSH_FRAME"] + ':"'
+'license error (licpause)"
> " + Rush.DevNull() + " 2>&1')
sys.exit(2)
# Other error
sys.stderr.write("--- NUKE FAILED: EXITCODE=%d,
ERRMSG=%s\n" % (exitcode, errmsg))
# Failed all retries? Handle retry behavior
if ( fields["RetryBehavior"] == "AddNever+Requeue"
): # REQUEUE/FAIL
Note the indent level is critical in python; those two lines
should be indented 8 spaces.
Again, this is specific to the submit_nuke in 103.07 or older.
Both issues mentioned in this thread will be fixed in the next
Rush release (103.08),
yet to be announced.
|
|