在condor完成提交工作后,如何发送电子邮件



我在运行一个condor作业后尝试使用电子邮件选项。我试过这个:

Executable   = executable.sh
Log          = file.log
Output       = file.stdout
Error        = file.stderr
# Use this to make sure 1 gpu is available. The key words are case insensitive. 
REquest_gpus = 1
# Note: to use multiple CPUs instead of the default (one CPU), use request_cpus as well
Request_cpus = 3
# "Queue" means add the setup until this line to the queue.
Queue
#
Notify_user = my_email@yahoo.com

但它失败了。为什么?如何将其放入提交文件?


这也没有帮助:

notify_user = $<$email-address$>$
Used to specify the e-mail address to use when Condor sends e-mail about a job. If not specified, Condor defaults to using the e-mail address defined by
job-owner@UID_DOMAIN
where the configuration variable UID_DOMAIN is specified by the Condor site administrator. If UID_DOMAIN has not been specified, Condor sends the e-mail to:
job-owner@submit-machine-name

https://research.cs.wisc.edu/htcondor/manual/v7.6/condor_submit.html

不管怎样,我都希望它出现在job.sub脚本中。


编辑:

我把通知用户放在最后。现在我没有看到秃鹰日志中的错误,但我没有收到电子邮件。所以这意味着condor在Queue结束后正确解析了我的文件,但它没有发送电子邮件。有人知道为什么吗?

在HTCondor提交文件中,"Queue"语句也应该是文件中的最后一个。尝试将Queue移到末尾,使notify_user位于文件中它之前的某个位置。

此外,你会想要一个通知=总是在提交文件中,就像这个

notify_user = my_email@example.com
notification = always

最新更新