[GE users] Problem with timing of cleanup when "qdel" is called

mlelstv mlelstv at serpens.de
Fri Jun 19 19:53:14 BST 2009

On Thu, Jun 18, 2009 at 03:15:13PM -0700, maritac wrote:
> I have a user who has set up a signal handler to get a SIGUSR2 call when
> qdel is called on a grid job.  Inside the signal handler, he has code
> that needs to read some data in the grid tmpdir location.  The problem
> is when a qdel is run, the deletion of the grid tmpdir is being done at
> the same time as the SIGUSR2 interrupt handler code is being called,
> causing the files to not be available.

I guess that the user only catches the signal in the application but
not in the jobscript. Then the jobscript exits with the signal and
the cleanup starts. You need to catch the signal in the jobscript
as well and wait for the application to finish.

                                Michael van Elst
Internet: mlelstv at serpens.de
                                "A potential Snark may lurk in every tree."


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

More information about the gridengine-users mailing list