[Bioclusters] Any one need a job submitting Perl module for LSF

Tim Cutts tjrc at sanger.ac.uk
Thu Mar 17 07:33:41 EST 2005

On 16 Mar 2005, at 5:48 pm, Malay wrote:

> Hi All:
> Sometimes back I wrote a perl module for submitting jobs to LSF que. 
> The module is moderately intelligent. In can start,modify,que,delete 
> jobs in  LSF. It can also blacklist problematic nodes on the fly, and 
> and kill and restart jobs automatically.
> My question is does anyone need this type of module, in that case, 
> I'll clean up the code and write a documentation for it and make it 
> public.

If the module uses the LSF C API to do its work, then I'm definitely 
interested - we already have stuff which are shell wrappers around the 
normal command line tools.  There are some LSF modules in CPAN already, 
which use the C API, but they don't compile against more recent LSF 
versions (I think they were written for LSF 3.x, and I certainly 
couldn't get them to work properly against 5.1, and lost the will to 
live trying to debug them - I'm not an XS guru)

But doing it "properly" with the C API has some major advantages; for 
example it's much easier to retrieve the submitted job ID (it's the 
return value of the C library job submission function), rather than 
having to do some nasty fork or tie hack to extract the job ID from the 
bsub command's standard output, and of course there's no overhead of 
invoking the external applications.


Dr Tim Cutts
Informatics Systems Group, Wellcome Trust Sanger Institute
GPG: 1024D/E3134233 FE3D 6C73 BBD6 726A A3F5  860B 3CDD 3F56 E313 4233

More information about the Bioclusters mailing list