I have a number of function apps that run based on "Timer Triggers"
At the moment they are running every 5 minutes.
public static async Task Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, TraceWriter log)
I want to be able to read the current timer setting and change the TimerTrigger value programmatically so that we can change it from a management portal.
Is this possible?
There is no way to this today when using the VS precompiled model. But it is interesting feedback, and I suggest opening an issue on https://github.com/Azure/azure-functions/issues.
Update: it's actually possible to achieve this using an App Setting to hold the cron. Stealing example from https://github.com/Azure/azure-webjobs-sdk-script/issues/1934:
public static void Run([TimerTrigger("%CRON_EXPRESSION%")]TimerInfo myTimer, TraceWriter log)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With