gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 10:20:34 24 4
gpt4 key购买 nike

我在运行 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

关于condor - 在 Condor 中完成提交工作后如何发送电子邮件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60875063/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com