AWS Lambda Cron计划错误 [英] AWS Lambda Cron Schedule Error

查看:95
本文介绍了AWS Lambda Cron计划错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个Lambda函数正在按计划进行,并且这些函数可以正常工作.但是,我有一份以前的工作,我正在尝试为现有功能进行设置,并且在创建新规则时遇到错误:

I have several Lambda Functions that are on a schedule and those are working without any issues. However, I have a onetime job that I am trying to set up for an existing function and am getting an error when I am creating the new rule:

详细信息:参数ScheduleExpression无效..

Details: Parameter ScheduleExpression is not valid..

我需要在2016年9月26日(星期一)世界标准时间14:30时运行.

I need this to run on Monday September 26th 2016 at 14:30 hours UTC.

这是我尝试过的所有变体:

Here are all of the variations I have tried:

  • cron(30 14 26 SEP?2016)
  • cron(30 14 26 9?2016)
  • cron(30 14 26 SEP?*)
  • cron(30 14 26 9?*)
  • cron(30 14 26 SEP MON 2016)
  • cron(30 14 26 9 MON 2016)

我注视着这个时间太久了,因为我不知道这笔交易是什么.我正在使用此处提供的参考:

I must have been staring at this too long because I can't figure out what is the deal on this one. I am using the reference provided here:

http://docs. aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html

谢谢!

推荐答案

您正在使用Web控制台还是CLI?在Web控制台中,您不应填写cron()部分.您的第一个表达式是正确的.

Are you using web console or CLI? In web console you should not fill the cron() part. Your first expression is correct.

查看屏幕截图:

这篇关于AWS Lambda Cron计划错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆