It would seem to me that the best way to do this would be to create a
queue for these jobs and then use the resource quota to limit the number
of jobs that can execute in that queue simultaneously to 1. Now you can
launch all the jobs and let them queue until there is an available slot.
{
name max_np_A_jobs
description NONE
enabled TRUE
limit users * queues lt_np_A to slots=1
}
Message: 5
Date: Wed, 26 Sep 2012 20:41:56 +0200
From: Daniel Gruber <[email protected]>
To: "Eleonora Lusito" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [gridengine users] in tandem qsub running
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
The easiest way would be to give a job a name with qsub -N job1 (or use
-terse for getting the job id) and
then using -hold_jid for the second job. More details you will find in
the qsub man page. Of course you
can also use DRMAA, or more unusual an array job with task throttling
(-tc 1).
Daniel
Am 26.09.2012 um 19:59 schrieb Eleonora Lusito:
> Dear users,
> I have a list of .sh to run, exactly 34. I can run just a .sh job at
a time
> so I can launch only one qsub at a time because of the complexity of
the
> analysis. Anyway I would like to find a way to launch a .sh script
immediately
> after the previous .sh script is completed.
> I cannot set a time to start for each job (in order to run them
consequently
> ) because I don't know exactly the time the script needs due to the
fact that
> a variable number of users are launching a variable number of script.
> I don't know really how this can be done. Any suggestion about?
>
> Thanks a lot
>
>
> E.
>
> --
> Eleonora Lusito
> Computational Biology PhD student
> Molecular Medicine Program
> via Ripamonti 435, 20141 Milano, Italy
>
> Phone number: +390294375160
> e-mail: [email protected]
>
>
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users
********
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users