Hi andrew

What you need to do is to add the qsub parameter '-sync y'. This puts a hold on the qsub command and makes it wait until the SGE job is finished.

regards
Bram

On 05/04/2011 18:27, andrew stewart wrote:
I'm aware of how to configure Galaxy to use SGE in universe_wsgi.ini, however what I want to do is a little different.  Because I only want certain processes to be submitted to the queue, I'd rather control this at the tool configuration level (the xml wrapper).  For example:

<command interpreter="bash"> 
    qsub myscript.sh
</command>

This will work, except that the status of the job (in Galaxy) shows as completed even though the job has simply been submitted to SGE.  Basically Galaxy 'loses track' of the process because the submission process (myscript.sh) has completed even if the actual job hasn't.  

Has anyone else tried anything like this before, or have anything helpful to suggest?  One thought is to somehow cause the myscript.sh process to pause until the SGE job has completed... somehow.

Any advice appreciated.

Thanks,
Andrew
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/

-- 
=========================================================
Bram Slabbinck, PhD

Bioinformatics & Systems Biology
VIB Department of Plant Systems Biology, Ghent University
Technologiepark 927, 9052 Gent, BELGIUM

Tel:+32 (0)9 33 13 822
Fax:+32 (0)9 33 13 809
Email: Bram.Slabbinck@psb.ugent.be
WWW: http://bioinformatics.psb.ugent.be
=========================================================
        Services and consulting in bioinformatics        
                  http://www.arctix.be                  
=========================================================