[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] How to configure globally notify_user in config file instead of submit files



Ohk. In the same way, is it possible to use notification=error so that it sends mail only to failed jobs?Â

On Fri, Apr 10, 2015 at 9:36 PM, Todd Tannenbaum <tannenba@xxxxxxxxxxx> wrote:
On 4/7/2015 7:27 AM, Sridhar Thumma wrote:
Hi,

I want to send an email to specific email address whenever there is an
error in condor. I found that if use notify_user in submit files, it
will send email to that user. But, I want to configure that in config
file instead of submit file.

Please suggest me on this.


You can make a default for notify_user in your condor_config file (or condor_config.local) by appending this to the bottom of the file:

 NotifyUser = "someone@xxxxxxxxxxxxx"
 SUBMIT_ATTRS = $(SUBMIT_ATTRS) NotifyUser

Note that the user can still override the address you set in the condor_config by specifying NotifyUser (or notify_user) in the job submit file.

Hope the above helps,
Todd


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@cs.wisc.edu with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/