[GE users] how to get finished/failed/running/waiting jobs in an array job?

fy fly at anydata.co.uk
Mon Jul 6 11:37:27 BST 2009

Last week I wrote a perl script as a Friday afternoon exercise, using 
the output of "qstat -g d -xml", that would give a per job 
running/pending split, but not the total finished count.

It seems that to get what you want will need more than one qstat call, 
which could lead to inconsistent data if any jobs/tasks change state 
between the two qstat calls.

good luck :-)

Fred Youhanaie

pescobar wrote:
> thanks for your help Fred,
> finally I think I will have to parse "qstat -g d" output. I have started writing a little 
> python cli interface to qstat in order to get my desired output. I will share it in the 
> mailing list when I have something usable in case it is useful for anyone.
> I got surprised of not being able to get how "many total jobs/running jobs/waiting 
> jobs/finished jobs" I have in my array jobs directly from a qstat option.
> Pablo.
> On Friday 03 July 2009 19:01:44 fy wrote:
>> I'm afraid I don't anything else to add, other than parsing the
>> ja-task-ID column to get the total number of tasks.


To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].

More information about the gridengine-users mailing list