Why is my Amazon EventBridge schedule starting immediately?

1 minute read
1

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

Short description

An Amazon EventBridge schedule starts after the specified start date. If the schedule starts immediately instead of on the specified start date, then adjust the schedule to invoke it at the required 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, verify that the schedule is set to a flexible time window.
  5. Choose Edit, and then make the required changes.
  6. Choose Save schedule.

The EventBridge Scheduler now runs on the schedule that you set.

AWS OFFICIAL
AWS OFFICIALUpdated a year ago
4 Comments

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.

replied 10 months ago

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

profile pictureAWS
MODERATOR
replied 10 months ago

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.

replied 9 months ago

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

profile pictureAWS
MODERATOR
replied 9 months ago