En utilisant AWS re:Post, vous acceptez les AWS re:Post Conditions d’utilisation

Why is my Amazon EventBridge schedule starting immediately?

Lecture de 1 minute(s)
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 OFFICIEL
AWS OFFICIELA mis à jour il y a 10 jours
4 Commentaires

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.

a répondu il y a un an

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

profile pictureAWS
EXPERT
a répondu il y a un an

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.

a répondu il y a 10 mois

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

profile pictureAWS
MODÉRATEUR
a répondu il y a 10 mois