[GE users] checking job return status in epilog script

cjf001 john.foley at motorola.com
Wed Jun 10 01:59:23 BST 2009


Thanks - just what I was looking for.  It turned out, though, while
I was testing this I found that the "exit_status" file is not updated -
it always remained at 0 length, no matter if I
caused the job to fail or not. However, the job's exit status
*does* seem to be recorded in the "usage" file, and it's
easy to parse out of there.

Lot of good stuff in this directory - especially the shepard's
trace file !

     thanks again -

        John


rayson wrote:
> On 6/9/09, cjf001 <john.foley at motorola.com> wrote:
> 
>>"Exit codes for the epilog attribute can be interpreted based on the
>>following exit values..."
> 
> 
> The manpage is talking about the exit status of epilog -- if epilog
> exits with exit code 99, then even the exit code of the job is non 99,
> SGE would still reschedule the job.
> 
> On the other hand, if you need the exit code of the job when you are
> in the epilog, you can follow this method:
> 
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=36393
> 
> In theory shepherd has the knowledge of the exit code of the job
> before it executes epilog, so you can try to do an environment dump
> and see if there is an environment variable used for passing this
> info. A quick google search did not turn up anythiong though!
> 
> I think sometimes it is quite useful to get the exit information in
> the epilog, so open an issue if you want to an easier way (eg. env
> var) than parsing the job status files.
> 
> Rayson
> 
> 
> 
> 
> 
>>Is this implying that the completion status of the job can somehow
>>be extracted by the epilog script ?  If so, how would one accomplish
>>this ?
>>
>>   Thanks,
>>
>>     John
>>
>>
>>
>>--
>>###########################################################################
>># John Foley                          # Location:  IL93-E1-21S            #
>># IT & Systems Administration         # Maildrop:  IL93-E1-35O            #
>># Antenna & Mechanical Simulation Grp #    Email: john.foley at motorola.com #
>># Motorola, Inc. -  Mobile Devices    #    Phone: (847) 523-8719          #
>># 600 North US Highway 45             #      Fax: (847) 523-5767          #
>># Libertyville, IL. 60048  (USA)      #     Cell: (847) 460-8719          #
>>###########################################################################
>>                (this email sent using Mozilla on Windows)
>>
>>------------------------------------------------------
>>http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=201345
>>
>>To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
>>
> 
> 
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=201350
> 
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].


-- 
###########################################################################
# John Foley                          # Location:  IL93-E1-21S            #
# IT & Systems Administration         # Maildrop:  IL93-E1-35O            #
# Antenna & Mechanical Simulation Grp #    Email: john.foley at motorola.com #
# Motorola, Inc. -  Mobile Devices    #    Phone: (847) 523-8719          #
# 600 North US Highway 45             #      Fax: (847) 523-5767          #
# Libertyville, IL. 60048  (USA)      #     Cell: (847) 460-8719          #
###########################################################################
                 (this email sent using Mozilla on VPC)

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=201363

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



More information about the gridengine-users mailing list