[GE users] suspension scripts questions

cjf001 john.foley at motorola.com
Thu Jul 2 21:23:02 BST 2009


All -

I have a couple of questions about the "execution method" scripts that can be assigned per
queue. Let's take the "suspend method" script as an example...

...let's say a job is running in a queue that is a subordinate of another, and
SGE decides to assign a job to the superordinate queue on that machine - thus
suspending the subordinate queue and firing the "suspend method" script.

question 1 - what is the order of operation here ?  Is the job that caused
the suspension assigned to the machine immediately, or does SGE wait until
the suspension script is complete ? In other words, let's say that the
suspension script, for some reason, takes a minute or two to run - is the
job that caused the suspension held off for this time, or has it already
been started (thus "double-loading" the machine) ?

question 2 - is there anything that the suspension script can do to prevent
the suspending job from being assigned to the superordinate queue ? Or
is it too late ?


The reason I ask is this : when a job is suspended, we'd like to "examine"
it and decide if it's "about to finish" - if so, then we'd like to
cancel the suspension and let it finish. My first thought was to use the
suspension script to check the status of the job that's being suspended -
but the question becomes, if the script decides that the job should be
allowed to continue, is there anyway to prevent the suspending job from
running ?

Other thoughts on ways to 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=204992

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



More information about the gridengine-users mailing list