Page tree

Contents

Once you have installed Tractor, customized your configuration files, and started the engine and blade services, you are ready to submit your first job.

 

Open a Dashboard

The Dashboard is convenient way to manage the jobs and blades from the comfort of your favorite browser.

Go to http://tractor-engine, or http://HOSTNAME:PORT if you have a custom hostname and port, and log in to Tractor.

If the Dashboard cannot be reached, check that the engine is in fact running. The engine log file can provide useful diagnostic information.

 

About the Examples

The following examples assume your current directory is INSTALL_DIR/bin.

The TRACTOR_ENGINE environment variable or --engine flag can be used to point the command line programs to a different engine from the default or the one determined through engine discovery.

 

Submit a Job

Jobs can be submitted into the Tractor queue using the tractor-spool script, or through the RenderMan for Maya plug-in, or using the author API.  Job submission is sometimes referred to as spooling by analogy to print spooling or traditional batch job systems.

tractor-spool most commonly takes the filename of an Alfred-syntax job file as an argument.

% tractor-spool jobfile.alf

The following example job can be placed in a file and submitted with tractor-spool. It will simply output the environment that the command is running in.

Job -title {Environment Job} -subtasks {
  Task -title {Environment Task} -cmds {
    RemoteCmd {{printenv}} -service {pixarRender}
  }
}

You can view the output of the task using the Dashboard, or from the command line with tq. The job id JOBID would be substituted with the job id emitted by tractor-spool.

tq log jid=JOBID and tid=1

The -c option creates a new tractor job for the single command specified by the remaining arguments. Try this simple command to test that the system is working. The job status and output can be checked in the Dashboard or tq.

% tractor-spool -c printenv
 

Delete a Job

Jobs can be deleted in the Dashboard by clicking on the job entry in the job queue, and pressing the Delete or Backspace key.

Jobs can als be deleted from the command-line using the spooling tool by specifying the job id with --jdelete.

% tractor-spool --jdelete 1534

tq also permits the deleting a job from the command-line.

% tq delete jid=1534
 

Further Reading

All users will be interested in the Dashboard section which describes the graphical interface for managing the system.

Developers can learn about how to generate job scripts in the Job Author Python API section. Tools for querying and managing the state of jobs and blades can be created with the Query Python API.

Wranglers, admins, and anyone else confortable on the command line will enjoy the power of the command line tool tq.

Admins can explore advanced customization techniques in the Configuration section.