[torqueusers] how to get exit status

Alexander Saydakov saydakov at yahoo-inc.com
Fri Jan 20 12:24:49 MST 2006


Right, it does work in 2.0.0p5 (does not work in p4, by the way - I also
have p4 installation around). Qstat shows the job with the status of 'C'
(completed) for a specified period of time, but I don't see any exit code
there. I would like to have the exit code from the actual script or binary.


-----Original Message-----
From: Dave Jackson [mailto:jacksond at clusterresources.com] 
Sent: Friday, January 20, 2006 10:45 AM
To: Alexander Saydakov
Cc: torqueusers at supercluster.org
Subject: Re: [torqueusers] how to get exit status

Alexander,

  TORQUE supports a 'keep_completed attribute which causes TORQUE to
maintain information regarding recently completed jobs and allows this
info to be viewed via qstat.  The syntax for enabling this is

set queue <QUEUENAME> keep_completed = <SECONDS>

ie,
  
-------
> qmgr

set queue batch keep_completed = 300
-------

  For this feature, I would recommend you be running TORQUE 2.0.0 p5 or
p6.  I believe the completed job info would also be available via the
perl-PBS API.

Dave

On Fri, 2006-01-20 at 10:33 -0800, Alexander Saydakov wrote:
> Hi!
> 
>  
> 
> What is the best way to get the exit status of a job either on command
> line or through perl-PBS?
> 
>  
> 
> I would like to submit jobs from an application, wait for them to
> finish and check the exit status. The only way I see now is to parse
> the output of tracejob, which is ugly and takes access to log files.
> 
>  
> 
> Thank you.
> 
> 
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers




More information about the torqueusers mailing list