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

Cha*_*ker 4 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
Run Code Online (Sandbox Code Playgroud)

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


这也没有帮助:

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
Run Code Online (Sandbox Code Playgroud)

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

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


编辑:

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

Gre*_*reg 5

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

另外,您需要一个通知 = 始终在提交文件中,如下所示

 notify_user = my_email@example.com
 notification = always
Run Code Online (Sandbox Code Playgroud)