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

在condor中完成提交工作后,如何发送电子邮件?,condor,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 us

在运行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
通知用户=$$
用于指定Condor发送有关作业的电子邮件时使用的电子邮件地址。如果未指定,Condor默认使用由定义的电子邮件地址
工作-owner@UID_DOMAIN
其中配置变量UID_DOMAIN由Condor站点管理员指定。如果尚未指定UID_域,Condor会将电子邮件发送至:
工作-owner@submit-机器名

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


编辑:
我把notify用户放在末尾。现在我在condor日志中没有看到错误,但我没有收到电子邮件。这意味着condor在
队列
结束后正确解析了我的文件,但它没有发送电子邮件。有人知道为什么吗?

在HTCondor提交文件中,“Queue”语句也应该是文件中的最后一项。尝试将队列移动到末尾,以便notify_用户位于文件中队列的前面

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

 notify_user = my_email@example.com
 notification = always

好吧,我再也没有收到错误了,但似乎出于某种原因,我没有收到我的电子邮件。你自己试过了吗?这对你有用吗?可能有几件事。您将希望在提交文件中queue语句之前的某个位置有一个notification=始终。如果这不起作用,并且假设您在linux机器上,管理员可能会阻止电子邮件。让我们希望这是第一个…我如何尝试第一个格雷格?语法是什么?堆栈溢出注释使代码格式化有点困难,但在提交文件中通知用户=电子邮件的那一行,在上面加一行,表示通知=Always我改变了主意,只希望condor在我的提交脚本无法捕获错误时向我发送电子邮件。错误电子邮件的选项是什么?顺便问一下,你在哪里查这些东西?我还没有找到一个很好的方式来获取有关秃鹰在线或其他信息。。。