Timer Trigger CRON Scheduling
As part of the existing timer trigger it would be great if the interval could be set via CRON expressions, similar to how you allow this with Azure Functions.
For example, I have some scenarios when I want a Logic App to execute once per working day (Monday to Friday here) at 9am
Thanks for your suggestion. I am curious why the current model for creating a scheduled execution isn’t sufficient and a CRON expression would be needed.
I can provide one reason why this is needed.
I want to run a specific scheduled task at 12 noon, 2:30 pm and 5 pm. This is based on third party requirements that I've got no control over. Based on the current scheduling configuration, hour and minute are separate and I can't produce my specific times. I can have '12, 14, 17' for hours and 0 for minutes, but this would run at 12noon, 2pm and 5pm. If I change minutes to '0, 30' it would run at 12 noon, 12:30 pm, 2pm, 2:30pm, 5pm, 5:30pm... I can't get 12 noon, 2:30 pm and 5 pm (unless I duplicate the trigger)...
Jono Walker commented
When I logged this, scheduled recurrent executions weren't documented. The LA team reached out and provided some direction, which covers my use case (and most others I imagine).
If this is now documented, it would be good to know where?
Here is the syntax provided by the LA team:
"recurrence": // optional
"frequency": "week", // can be "year" "month" "day" "week" "hour" "minute"
"interval": 1, // optional, how often to fire (default to 1)
"schedule": // optional (advanced scheduling specifics)
"weekDays": ["monday", "wednesday", "friday"],
"hours": [10, 11],
"minutes": [0, 15],
I'm happy that this is resolved.
Graham O'Riley commented
I also need this requirement.