queue or its aliases job.queue job.q etc.
Prepare a job scheduler command file. Interactive menu interface to native job scheduler commands. Command line interface. Resource file for persistent option values.
At the shell prompt, enter the name of a queue script, for example job.queue. From the interactive menu interface, enter Build or B to tell queue to build a job scheduler command file.
Queue needs the following information about your job. If you do not specify a value, queue will use application specific default values or values from a .queuerc resource file that you have previously saved.
Some applications allow or require you to enter arguments for the program or script, or other application specific information.
If you belong to a resource group which has contributed nodes to the Hoffman2 Cluster, you may also request to limit your job to using only your resource group's nodes. For most jobs you should not use this option. However in these cases it may be necessary:
If your resource group has nodes in more than one data center, the job scheduler will choose the data center where your job will run.
Two files are generated by queue for all applications: jobname.cmd and jobname.joblog. These files are saved in the output directory. The output directory is usually the same as the directory where your input program or control file is located, unless you have used the -o output-directory option or have specified an output directory in your .queuerc resource file.
The jobname.cmd file is the command file that is submitted to the job scheduler.
The jobname.joblog file is the output file produced by the job scheduler. It contains job information, statistics and error messages. Most applications will append the job's JOB_ID to this file name.
Most applications will also generate a jobname.output file which contains the results of running your program. Most applications will append the job's JOB_ID to this file name.
In addition, each application may generate other files. For example, if you run gamess.q it will generate an .output file and a .dat file and might additionally generate an .irc file.
When you enter a queue script name at the shell prompt without entering your executable program or script or application control file name, you will see a menu similar to this:
------------------------------------------------------------ Serial job script Functions (acceptable abbreviations are shown in CAPS) Menu: Display this menu Info: Display help information Build: Build a .cmd file for Serial Submit: Submit a .cmd file for execution STatus: Display the status of jobs for userid SYsstat: Display the status of jobs for the system Hold: Hold a job RELease: Release a job that is held RESet: Reset the priority of a job Cancel: Cancel a job Quit: Exit this script Command: ------------------------------------------------------------
Enter Build or B to begin the process of creating a job scheduler command file for your program. Queue will prompt you for values for the amount of memory, number of hours and possibly other parameters related to the application you are using. It will use any ~/.queuerc file options you may have saved.
After queue has created your cmd file, it will ask whether you want to submit the command file to the job scheduler. If not, you will be returned to the menu and prompted for another command. If so, queue will check that jobname.joblog and jobname.output do not already exist. If one or more output files does exist, you will be asked if you want to overwrite these files and continue with the job submission. Some applications or programs do not allow output files to be overwritten.
You may want to not submit your job at that time and instead view or edit the command file that queue has built. You can later use either queue's Submit menu function, or a native job scheduler command (qsub) to submit your command file.
Command mode can only be used to build and submit a .cmd file. It will not usually prompt for any option values. It will use application specific defaults which may be overridden by command line options. It will use any ~/.queuerc file options you may have saved. It will not save the .cmd file that it creates unless you specify the -k (keep) option.
It may write messages to stdout unless you have used the -q (quiet) option, in which case it may still write error messages to stdout.
The syntax for command line mode is:
queue [queue-options] control-file [program-arguments]
Example to build, submit and keep a .cmd file for a file myprogram
job.q -k myprogram
It is possible to use interactive menu mode with command line options. When you enter queue at the shell prompt, also enter command line options but do not enter a control file name or program arguments. This will trigger queue's interactive menu mode. If you use any required options (e.g., -t time or -d memory) interactive menu mode will not prompt you for new values for them.
Example of invoking interactive menu mode with command line options:
job.q -o ~/output -m complete
syntax:
queue [-e] [-f] [-h] [-k] [-q] [-ns] [-u] [-//]
[-p priority] [-d memory] [-t time]
[-n parallel-tasks] [-mt threads]
[-jl lower-index] [-jh higher-index] [-ji interval]
[-o output-directory] [-m messaging]
[-rg resource-group | any] [-dc data-center | any]
control-file [program-arguments]
This priority is only used to order your current jobs for selection for execution. It will not affect the priority for selection among all jobs. Within your jobs it is possible for a lower priority job to be selected for execution before a higher priority job, if the jobs will be in different queues and a processor in the lower priority job's queue becomes available before there is a processor available in the queue for the higher priority job.
never   no messages are sent. start   a message is sent when the job starts complete   a message is sent when the job completes always   messages are sent when the job starts and completes, and for errors. error   a message is sent only if the job aborts, or is rescheduled or suspended.
or, with one or more of the qsub command -m values:
b   Mail is sent at the beginning of the job. e   Mail is sent at the end of the job. a   Mail is sent when the job is aborted or rescheduled. s   Mail is sent when the job is suspended. n   No mail is sent.
Messages are sent to your userid and automatically forwarded to the email address you supplied when you applied for your Hoffman2/UCLA Grid account. The default is application specific.
If you have some queue options that you always want to be used, you can put them in the file .queuerc under your home directory.
This file contains lines that set options to be used by queue and may also contain comment lines that begin with a # symbol.
The following options can be specified. Note that qqkeepcmd, qqquiet, qqpriority, qqmemory, and qqtime cannot be overridden by their respective command line options. If you set any of these options, interactive menu mode will not prompt you for new values for them.
- qqnotify
- qqodir
- qqkeepcmd
- qqquiet
- qqpriority
- qqmemory
- qqtime
----------------(a sample .queuerc file)-------------------- # My queue options # Messaging option, overridden by "-m messaging" set qqnotify = complete # Output directory, overridden by "-o output-directory" set qqodir = ~/output ------------------------------------------------------------
For more information about available queue application scripts and how to use them, please point your browser at:
Software Installed on ATS-Hosted Clusters and its subsequent links for each package or program to "How to run on ATS-Hosted Clusters".
See the following man pages for further information about job scheduler commands:
qacct qalter qconf qdel qhold qhost qlogin qmake qmod qmon qping qquota qrdel qresub qrls qrsh qrstat qrsub qselect qsh qstat qsub qtcsh
See also the following scripts: myjobs, mygroup
January 2011