Opened 13 years ago
Last modified 10 years ago
#559 new defect
IZ2689: '-notify' does NOT work with binary jobs ('-b y')
Reported by: | opera | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | sge | Version: | 6.0u6 |
Severity: | Keywords: | execution | |
Cc: |
Description
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2689]
Issue #: 2689 Platform: All Reporter: opera (opera) Component: gridengine OS: All Subcomponent: execution Version: 6.0u6 CC: [_] reuti [_] Remove selected CCs Status: NEW Priority: P3 Resolution: Issue type: DEFECT Target milestone: --- Assigned to: pollinger (pollinger) QA Contact: pollinger URL: * Summary: '-notify' does NOT work with binary jobs ('-b y') Status whiteboard: Attachments: Issue 2689 blocks: Votes for issue 2689: Opened: Thu Aug 14 03:12:00 -0700 2008 ------------------------ When submitting a script with '-notify -b y', the trap in the script seems does NOT work. Here's a sample script: #!/bin/sh trap "echo in1; echo in2; sleep 2; echo out;" USR2 sleep 100000 & wait $! exit % qsub -P projectname -l 'h_rt=10' -notify -b y $path_to_script The 'echo in1' has 10 percents to run, 'echo in2' has 1 percent to run. But mostly, nothing in the trap handler get run. Even strange, if login to the exec machine and send USR2 to the process group, the process exit immediately. It works fine without '-b y'. ------- Additional comments from reuti Sun Aug 17 07:19:52 -0700 2008 ------- > The 'echo in1' has 10 percents to run, 'echo in2' has 1 percent to run. But > mostly, nothing in the trap handler get run. Why 10% and 1% - I don't get it? Should "in1" be a program, then it must be backquoted like also "en2". > Even strange, if login to the exec machine and send USR2 to the process group, > the process exit immediately. This is normal for bash. The signal will be completely ignored (trap "" usr2), or quit any ongoing wait and continue in the next line. The wait won't be resumed. ------- Additional comments from reuti Sun Aug 17 07:20:23 -0700 2008 ------- added myself to cc
Note: See
TracTickets for help on using
tickets.