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 공식업데이트됨 11일 전
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.

답글을 게시함 일 년 전

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

profile pictureAWS
전문가
답글을 게시함 일 년 전

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달 전