brickls
brickls

Reputation: 185

Azure Timer Function is running multiple times on trigger

I have a timer function that runs every 12 hours that refreshes an oAuth token. For some reason the function run over and over many times resulting in about 3500 calls every 12 hours. Not sure if it is relevant but I have implemented the function in c# in Visual Studio and deployed to azure. My function does have an output binding to a azure blob for writing the refreshed token information. I thought originally that the problem was because I implemented the function as Async but the problem persists despite removing async.

Upvotes: 6

Views: 2372

Answers (1)

brickls
brickls

Reputation: 185

Cron expression is wrong. I was using * * */12 * * * instead of 0 0 */12 * * *

Upvotes: 7

Related Questions