[GE users] One email when entire job array completes?

Bogdan Costescu bogdan.costescu at iwr.uni-heidelberg.de
Thu Apr 29 22:13:26 BST 2004

On Thu, 29 Apr 2004, John Saalwaechter wrote:

> Is there any way get one email from a job array, just
> using the qsub command line?

The following solution helps only in the last phase of the e-mail 
delivery: from the e-mail daemon to the inbox. It doesn't reduce the 
number of e-mails generated by SGE nor the number of messages that 
have to pass through any intermediate e-mail daemons.

So, the solution is to use procmail for e-mail filtering. procmail is 
set to run from .forward and is handed the message from the 
daemon instead of writting it into the inbox. Procmail has duplicate  
mails detection capabilities, explained in 'man procmailex'. You can 
set it to check for the jobid and deliver only one message per jobid. 
procmail keeps a small cache of already seen matching sequences and so 
if the tasks take too long to complete while many other jobs finish, 
it might allow more than one message per jobid; however the cache size 
is configurable, so you can play with it to obtain the best results.

Bogdan Costescu

IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen
Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY
Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868
E-mail: Bogdan.Costescu at IWR.Uni-Heidelberg.De

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