email - RunDeck 在重新尝试发送失败电子邮件的工作时会做什么?
问题描述
我想重试一个只有 1 个节点的工作。但是,除非 3 次重试失败,否则我不想发送错误。因此,如果失败少于此,则不会发送电子邮件。重试是否会为每次尝试发送失败电子邮件?
解决方案
是的,使用“在可重试失败时”通知结合在“重试”文本框中定义的重试(创建或编辑作业时转到“其他”选项卡),您会在每次重试尝试时收到一封电子邮件。
如果您在所有重试后想要一封电子邮件,只需按以下方式使用“失败时”通知(作业有一个故意错误来触发失败通知):
<joblist>
<job>
<defaultTab>nodes</defaultTab>
<description></description>
<executionEnabled>true</executionEnabled>
<id>1bdda8f3-7b11-4003-9f6f-3480f6d08aac</id>
<loglevel>INFO</loglevel>
<name>HelloWorld</name>
<nodeFilterEditable>false</nodeFilterEditable>
<notification>
<onfailure>
<email attachType='file' recipients='it@example.net' subject='failure!' />
</onfailure>
</notification>
<notifyAvgDurationThreshold />
<plugins />
<retry delay='2'>3</retry>
<scheduleEnabled>true</scheduleEnabled>
<sequence keepgoing='false' strategy='node-first'>
<command>
<exec>eco "hi"</exec>
</command>
</sequence>
<uuid>1bdda8f3-7b11-4003-9f6f-3480f6d08aac</uuid>
</job>
</joblist>
推荐阅读
- excel - 调整表格大小后如何使A列重新出现?
- apache-spark - 为什么在本地机器上的纱线上运行 spark 时 hdfs 下的 spark .sparkStaging 文件夹?
- python - 如何使用 lambda、boto3 和 python 2.7 检查 s3 的顶级文件夹中是否存在特定文件
- microsoft-teams - Microsoft Teams 参与列表显示
- c# - 在 C# 中使用正则表达式通过限制输入从字符串中选择特定的出现
- hive - 如何避免 Hive 文本文件中最后一列值末尾的 TABS?
- java - 在 JavaFX 中发现 GUI 故障
- python - counting all string values in given column of a table and grouping it based on third column
- javascript - PHP 变量无法使用接受的答案正确解析以传递到 javascript
- android - 无法使用 Firebase 生成动态短链接