What does Batch-Queue-Feature mean?
If not enabled, whenever you press the Run-Button in the
Application-Window
, the job is started immediately
(interatively). With batch queues enabled, you have the possibility to
put this job into a batch queue (batch processing/load sharing).
After activating the Batch-Queue-Feature a selection of batch queues
appears next to to Run-Button in the
Application-Window
, where users may select the
appropriate queue. Before, the W2H admin (i.e. you)
and
may offer a selection of queues.
This Batch-Queue-Feature has to be activated for each application for which you want to use it.
How to activate Batch?
How to do those programs will be described later. Within this package there are examples for the following queueing programs: qsub/NQS, batch and at. Select one which is appropriate for your queueing system, rename it to w2h.batch.add (and a corresponding one to w2h.batch.rm), put them into the same directory with w2h.com, and change their access rights to make them executable.
Create a list file, with the specifications what applications should use what queue. Example:
.. BLAST QUEUEDEFAULT short QUEUES none,short,long FASTA QUEUEDEFAULT long BESTFIT QUEUEDEFAULT none QUEUES none,short,long
Specify the location of this file in the Cfg.pl variable $QUEUES_DEFINITION_TABLE. W2H comes with an example table in the file application.queues (as a partner file of application.menu).
If you have a queueing system like 'qsub/NQS', you can offer your users quite a list of queues. The specification of a QUEUEDEFAULT is required (otherwise no queues will be used for this application).
Additionaly you can specify an individual list of queues for the individual applications.
A special is the keyword none: If you don't add this special keyword to the list of QUEUES, running the application interactively is not possible (it is always in batch). You can use none as a QUEUEDEFAULT, too.
In the example above, BLAST runs by default in the short queue, but the user may change this to none (i.e. interactively) or to long. FASTA always runs in the batch queue long (the user can't change this). BESTFIT usually doesn't run in a batch queue, but the user can choose to use short or long as well.
Instead of specifying the same QUEUES list over and over again for every application, you may specify a default list of queues for all applications with no QUEUES entry in the list file (the QUEUEDEFAULT entry is still required). You can specify this default list in Cfg.pl:
$QUEUES = ("veryshort", "short", "long" "verylong", "FastA");
The name of the queue will be passed to you by W2H in the w2h.batch.add-program.
Please look into the provided examples for details:
There are examples, too, for this file:
If it is not working: