PBS (Portable Batch System) allows users to set email notifications about the state of their job(s). Careless usage of this option can however result in large amount of emails and potentially activation of spam filters. To avoid this, we aggregate the email notifications in 30 minutes intervals (with some exceptions - see below) and send them as single email subjected PBS JOB squashed report.
Options for email notification are as follows:
PBS -m <mail events> Specifies the set of conditions under which mail about the job is sent. Sets job's Mail_Points attribute to mail events. The mail events argument can be one of the following: The single character "n" Any combination of "a", "b", and "e", with optional "j" The following table lists the sub-options to the -m option: n No mail is sent a Mail is sent when the job is aborted by the batch system b Mail is sent when the job begins execution e Mail is sent when the job terminates j Mail is sent for subjobs. Must be combined with one or more of the a , b , or e sub-options Default: a
- emails that notify about termination (
PBS -m e) or abort (
PBS -m a) are aggregated in intervals of 30 minutes
- upon notification about the beginning of the job (
PBS -m b), everything aggregated so far is sent within 60 seconds and new aggregation interval starts
- if no emails were generated within the last 30 minutes, any next email is sent within 60 seconds and then fresh aggregation period starts
PBS -m b = 60 seconds" rule responds to the facts that some users rely on email notifications while waiting for their interactive jobs to start, in which case they need to be informed (almost) immediately. Other cases are squashed if possible.