[GE users] job dependency

Hong-Nga, Anne-Therese Nguyen nguyen at medias.cnes.fr
Fri Mar 24 09:01:39 GMT 2006


Thank you : )

P.S.: I haven't seen anything on exit code 100 in the Administration 
Guide, chapter 8.


Andreas Haas wrote:

>Well, I understand the behaviour upon qdel predecessors jobs
>is problematic. Possibly qdel should have an option automagically
>deleting entire -hold_jid workflows attached to a particular job?
>If that were a solution a script implementing such a behaviour
>based on qstat -j output
>
> # qstat -j 1705  | grep jid_sucessor_list
> jid_sucessor_list:          1706
>
>could mitigate the problem.
>
>Regards,
>Andreas
>
>On Thu, 23 Mar 2006, McCalla, Mac wrote:
>
>  
>
>>Hi,
>>
>>The -hold_jid  condition is fulfilled when the predecessor job(s) is
>>completed.  Job completion
>>codes (your script exit code/your program return/exit code) recognized
>>by sge are documented in
>>the Administrator's Guide, Chapter 8, Table 8-1.  When you kill the
>>job1, unless your script or binary traps the SIGKILL and causes an exit
>>with return code set to 99 or 100, the sge will consider
>>the termination successful completion and remove that dependency from
>>successor jobs (in your case job2).
>>
>>One way to do this would be to simply have a wrapper script for myjob1
>>that submits myjob2 if
>>the myjob1 returns successfully.
>>
>>HTH
>>
>>Mac McCalla
>>Geoscience Systems Consultant
>>Amerada Hess Corporation
>>500 Dallas St. , Houston, Texas  77002
>>
>>-----Original Message-----
>>From: Hong-Nga, Anne-Therese Nguyen [mailto:nguyen at medias.cnes.fr]
>>Sent: Thursday, March 23, 2006 11:11 AM
>>To: users at gridengine.sunsource.net
>>Subject: [GE users] job dependency
>>
>>Hi,
>>
>>I'm new with SGE 6.0 . I would like to run two jobs, the second one is
>>dependent of the first.
>>So I call:
>>
>>qsub myjob1
>>qsub -hold_jid 1 myjob2
>>
>>
>>When I kill the first job, I don't understand why the second is launched
>>
>>and not cancelled.
>>Is it possible to tell the submit host to run the second job only if the
>>
>>execution of the first job
>>terminates with success ?
>>
>>Thank you for your help
>>
>>Hong Nga
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>>For additional commands, e-mail: users-help at gridengine.sunsource.net
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>>For additional commands, e-mail: users-help at gridengine.sunsource.net
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>For additional commands, e-mail: users-help at gridengine.sunsource.net
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list