Monday, January 29, 2024

[SOLVED] create a cron schedule expression aws that triggers on 14 may and june 18

Issue

I want to create a schedule expression that triggers on may 14 and june 18 at 10:00 am.

Is this valid?

cron(0 0 10 14,18 5,6 ? *)

Solution

That's going to run 4 times:

  • May 14
  • May 18
  • June 14
  • June 18

I don't think you can schedule two specific days of different months with a single cron expression. You'll have to create two cron triggers for the two dates.



Answered By - Mark B
Answer Checked By - Katrina (WPSolving Volunteer)