在 Condor 中完成提交工作后如何发送电子邮件?

How does one send an email after the submission job is done in 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 日志中看到错误,但我没有收到电子邮件。所以这意味着 condor 在 Queue 结束后正确解析了我的文件,但它没有发送电子邮件。有人知道为什么吗?

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

此外,您需要在提交文件中始终有一个通知,就像这样

 notify_user = my_email@example.com
 notification = always