AWS re:Postを使用することにより、以下に同意したことになります AWS re:Post 利用規約

Why is my Amazon EventBridge schedule starting immediately?

所要時間1分
1

I want to know why the Amazon EventBridge schedule that I created invoked immediately and not at the specified date.

Short description

An Amazon EventBridge schedule starts after the specified start date. If the schedule starts immediately and not at the specified start date, then adjust the schedule so that it invokes at the specified start date.

Resolution

Verify that the schedule has a start date, or that you selected a flexible time window. When you configure your schedule with a flexible time window, the schedule invokes the target within the time window. If you don't set a start date or a flexible time window, then your schedule invokes the target immediately.

Review your schedule as follows:

  1. Open the Amazon EventBridge console.
  2. Choose Schedules.
  3. Choose the schedule that started immediately from the schedule list.
  4. Review the schedule details. Verify that there's a scheduled start time, or that the schedule is set to a flexible time window.
  5. Choose Edit, and then make the required changes.
  6. Choose Save schedule.
AWS公式
AWS公式更新しました 10日前
4コメント

My ideal scenario:

I want to create a rate schedule with days unit and day can be anywhere from 7 to 14. If today is 5th of Jan, then the first invocation shall happen on 12 Jan if rate value is 7 days.

Actual result:

The lambda is being triggered with in few minutes of schedule creation.

Flexible time window approach:

  • I also tried your suggested flexible time window approach.

Result:

  • I tried the scheduler settings with only flexible time window. I created 2 schedules with rate expression of 2 days and 4 hours. The target lambdas still triggered within minutes of creating schedule.

Flexible time window approach with start date settings:

  • I am still testing this mixed options approach. Hoping it will work.

Please suggest some working solutions for my use-case.

応答済み 1年前

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
エキスパート
応答済み 1年前

When editing a Rule, there is an option to create and edit a Schedule, and it's referred to as a Schedule in the UI. However this schedule does not exist in the Schedules which appear under Scheduler, and there is no option to specify a start time for such a schedule. My best guess is this is an ad-hoc schedule. It's not clear how this built-in schedule interacts with a schedule built under the scheduler, or if it does.

応答済み 10ヶ月前

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
モデレーター
応答済み 10ヶ月前

関連するコンテンツ