Optional. (New in rush 102.40 and up)
The job executes this command on the job server just before the job
begins running frames. This command is executed ONLY ONCE, on the job server.
Use this command to run preparation commands for the job,
such as preparing network directories before rendering.
If a job is submitted to WaitFor other jobs,
the 'jobstartcommand' will not run until the job first changes into
the RUN state, when the WaitFor criteria is met.
If a job is submitted in the Pause or Wait state,
the jobstartcommand will not be executed until the job enters the Run state.
While the command is running, the job will show a status of 'StartCmd'
in 'rush -lj' and 'rush -laj' reports. The command will be passed the
jobid in the RUSH_JOBID environment variable, so it's possible for the
script to use rush commands to query the job.
If the command is set to '-', or if the 'jobstartcommand' is not specified
at all, it will be disabled.
Exit codes are currently ignored.
The stdout and stderr output from the command is written to a file called
'jobstartcommand.log' in the LogDir.
This can be disabled if LogDir is disabled, or
(New in 102.40f) if the jobstartcommand's
'-nolog' option is specified, eg. jobstartcommand -nolog <command..>.
Here's a state diagram showing the various states the job status transitions through:
Click on the image to see a larger version.
|
JobStartCommand Examples
|
jobstartcommand perl //server/share/bin/jobstart.pl
|
Sets command to run a perl script
|
jobstartcommand -nolog perl //server/share/bin/jobstart.pl
|
102.40f and up only
Same as above, but 'jobstartcommand.log' isn't created.
|
jobstartcommand -
|
Disables the jobstartcommand (Default)
|