SGE DRMAA python job process

315 views Asked by At

I am using Python drmaa library to launch jobs on a SGE cluster. My services is available on REST API, during my test, all work fine, jobs are submitted / waited for completion / results retrieved once finished. Process is run once, in the same drmaa session.

On my web interface, the job is not processed : - job submission - job launched on SGE - job status on another time (via a call to drmaa.session.jobStatus(jobId)

Each time I run process to get job status, I get 'The job specified by the 'jobid' does not exist.'

I guess this is because I do not run "submission" and "status" request in the same drmaa session.

Is there a way to get a job status from another session ?

Thnxs.

1

There are 1 answers

1
marcoooo On

I finally found why this is not working : Finished job cannot be accessed anymore with 'qstat' method on seg (I guess this is the underlying command executed when asking for a job status via drmaa library). Some work is in progress with drmaav2 for sge which seems to solve the problem (efficient way to wait for job completion : python and drmaa)