时间表和“max_failures”属性
无法理解 max_failures
的想法。从文档中:
此属性指定作业在自动禁用之前连续计划运行失败的次数。
那么,假设我有一个时间表。其运行次数为 100。其失败次数为 18。其最大失败次数为 20。
当前运行已成功完成。
我期望:如果我打破它 - 它将在状态 FAILED 下运行 20 次,之后它将更改为 BROKEN
我得到的结果:它运行 2 次,因此失败计数为 20,尽管事实上它只是连续运行 2 次计划更改为“BROKEN”状态。
我错过了什么?
Can't get the max_failures
idea. From the documentation:
This attribute specifies the number of times a job can fail on consecutive scheduled runs before it is automatically disabled.
So, let's suppose I have a schedule. Its running count is 100. Its failure count is 18. Its max failures is 20.
Current run has finished successfully.
I expect: if I will break it - it will run exactly 20 times on state FAILED after which it will be changed to BROKEN
What I get: it runs 2 times so failure count is 20 and despite the fact it were just 2 consecutive runs the schedule is changed to state BROKEN.
What have I missed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为“连续预定运行”就是这个意思。如果成功,失败计数应重置为 0。
编辑
我猜我错了,抱歉。
阅读: http://download.oracle.com/ docs/cd/E11882_01/server.112/e17120/schedadmin004.htm
根据加里的评论 - 看起来您需要手动重置失败计数。
I think "consecutive scheduled runs" means exactly that. If it succeeds, the failure count should be reset to 0.
EDIT
Guess I was wrong, sorry.
Reading up: http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/schedadmin004.htm
As per Gary's comment - looks like you need to reset the failure count manually.