โ05-13-2024 12:15 AM
Hi,
I have to schedule a recipe to run every 4 hours starting from 11 AM in Timezone America/New_York(-05:00).
I am able to provide value to run every 4 hours but I am not able to provide starting time.
Your suggestion would be greatful for me.
Thanks
Solved! Go to Solution.
โ05-13-2024 10:14 AM
Maybe there is a smarter way to do this, but when I need a recipe to run at specific times, I make multiple recipes with a Scheduler trigger set to the specific time that I want. The Scheduler recipe then calls the recipe function I want to run (and, as a best practice, I always create recipes as functions that are called by other recipes. There are many advantages to this approach, but mainly it makes recipes easier to maintain and troubleshoot.)
Using the Scheduler like this ensures that the recipe ALWAYS runs at the EXACT time I want it to. Turning the recipe on/off doesn't affect the timing, and there is otherwise no drift in the timing.
In your case, I would do this:
And so on...
โ05-14-2024 06:15 AM - edited โ05-14-2024 06:18 AM
Hi Murugaraja,
You can use the custom schedule there and you can use this cron expression ( 0 11/4 * * * ) and than you can select the timezone as America/New_York(-05:00).
Thanks.
โ05-14-2024 07:18 AM
Thank you @gary1 @shivakumara @girish-naralla @Prajwal