[GE users] checking job return status in epilog script

rayson rayrayson at gmail.com
Tue Jun 9 21:51:29 BST 2009


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].



More information about the gridengine-users mailing list