无效的 CRON 表达式 0 */8 * * *
我正在尝试使用AWS CloudWatch服务。在里面,我正在创建一个合成的金丝雀。
对于时间表,我正在插入带有值0 */8 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *。
基本上,我想每天每8小时执行一次。
但是AWS Cron检查器告诉它是错误的表达。我已经检查了各种链接,但是到处都有相同的表达。
我不确定上述表达情况有什么问题。
I am trying to use AWS Cloudwatch service. Inside that I am create a Synthetic Canary.
And for the schedule I am inserting a cron job with value 0 */8 * * *
.
Basically I want to execute it every 8 Hours, Every Day.
But the AWS Cron checker tells that it is wrong expression. I've checked various links but everywhere same expression is there.
I am not sure what is wrong with above expression.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果需要每8小时执行一次,那么您可以使用
RATE
提供在这里。对于cron表达方式是:
您可以阅读 a>更多。
If this needs to be executed every 8 hours, then you can Schedule expressions using the
rate
as provided here.For CRON expression will be:
You can read here more.
CloudWatch合成金丝雀的新表达式有所不同,
我们需要5个值。
让我们通过以下表达式,
0/30 6-7,12-13,18-19 * *?
0/30->每30分钟,您可以在这里每5分钟,10分钟等一次。6-7,12-13,18-19-
>在6-7 UTC,12-13 UTC等之间。
- >一天可能是1-31,您的愿望或 *日常
- >月份可能是1-12或1月至12月的月份,或 *每月
- >一周中的一天可能是1-7,也可以是阳光,或 *每天 *
*
您可以使用
0 6,14,22 * *? - >每天8个小时一次。
New Expressions for Cloudwatch Synthetic Canary differs,
We need 5 values.
Lets go through the below expression,
0/30 6-7,12-13,18-19 * * ?
0/30 --> Every 30 minutes, Here you can use every 5 minutes, 10 minutes, etc..
6-7,12-13,18-19 --> Between 6-7 UTC , 12-13 UTC and so on.
--> Day which could be 1-31, your wish or * for everyday
--> Month which could be 1-12 or JAN-DEC or * for every month
--> Day of the week could be 1-7 or SUN-SAT or * for everyday
For your Case,
You can use
0 6,14,22 * * ? --> 8 hours once, everyday.