23.8 Generic System Job Trigger Requirements

A generic system job must have one and only one trigger. The trigger must meet the following four criteria:

  1. The EType is start.
  2. The AType is exec.
  3. The Timeout attribute is the desired walltime of the job. Moab ignores walltime requests when you submit a generic system job, using the trigger Timeout instead.
  4. The objectxmlstdin flag is set so that the job's XML, which contains the description of the VM being created, is passed to the trigger stdin for the VM creation script to access.

The trigger fires when the system job begins, and, because the trigger's Timeout doubles as the job's walltime, both complete at the same time. The job and trigger have the same completion code.

JOBCFG[gen] TRIGGER=EType=start,AType=exec,Action="$HOME/installVM.py $HOSTLIST",Timeout=1:00:00,Flags=objectxmlstdin

The job template gen creates a job with a walltime of 1 hour.

Sometimes the trigger will set a variable on completion or require a variable to run at all. For information about setting variables, passing them up to parent objects, and requiring variables on parent objects, see the Trigger Variables documentation.

Copyright © 2012 Adaptive Computing Enterprises, Inc.®