0

I am using azure timer trigger function for triggering every 15 minutes in a day. So I set the time in TimerTrigger->Integrate->Schedule as 0 */15 * * * *. But the function is executing on every 5 minutes.

enter image description here

Is any problem in given CRON expression?

5
  • 0 */15 * * * * is correct and I see function executes every 15m. Might be a silly suggestion but have you clicked Save after modifying the schedule? Commented Feb 15, 2019 at 2:49
  • yes, saved changes. Commented Feb 15, 2019 at 5:52
  • Looks like the function is consuming the old code(template is 5m). Just in case, have you tried the steps like refreshing(button next to functionapp), restarting or deleting and recreating? Commented Feb 15, 2019 at 6:09
  • You mean after updating the Shedule time, then restart the function, right? Commented Feb 15, 2019 at 6:13
  • Yes. But function runtime is supposed to reload the file changes automatically without any manual steps. Not sure what goes wrong on your side. Commented Feb 15, 2019 at 6:17

1 Answer 1

1

Your expression is wrong.

Try these

0 */15 * ? * * // every 15 minutes starting at minute :00, of every hour

* 0/15 0 ? * *  //every 15 minutes starting at minute :00

You can test it in cron generator

Sign up to request clarification or add additional context in comments.

4 Comments

You can check them in the link on the post cron generator.
I edited my answer you can test them in freeformatter.com/cron-expression-generator-quartz.html
That cron generator link you provided, only allows for 7 characters, when I run that in Azure it throws an error, the default is 5 characters when you create a new timertrigger. So I'm confused on proper format of these exprssions. I've seen examples with 4 and some with 6, what is correct?
@AndyH cron expression isn't azure only.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.