1
votes

I have several tasks that I want to run periodically. Each of these tasks will run based on a configured time period. This means I need to dynamically run the task based on the configured period.

At first, I thought Azure Functions would be good for this. However, I've learned that Azure Functions can only run for 5 minutes. They can be extended to 10 minutes, but it's still short of my needs. The configured period can be up to 1 hour. So, a timer trigger function won't work since I need to dynamically set the schedule at which the function runs.

My question is, is there a way in Azure to run a block of code, like an Azure Function, on a dynamically configured interval?

1

1 Answers

2
votes

Don't confuse how long a function is allowed to run with the ability to schedule a run. Take a look at creating a timer triggered function. You can use a CRON expression to specify the schedule that you want to invoke your function on.