locked
Azure Functions trigger timer 2 times on 1 day RRS feed

  • Question

  • Hello

    Can i trigger a Azure function every working day on 8 AM and 11:59 AM ?

    I can't find the correct cron expression.

    regards

    Dieter

    Thursday, December 15, 2016 7:57 AM

Answers

  • I'm not sure you can write a cron expression for 8am and 11:59am because the minutes are different. But if you can adjust to 12pm (one minute later), this should work:

    0 0 8,12 * * 1-5

    If you must have the minutes different, you may need to set up two separate functions with those specific times. They can each be pretty simple and just call into a helper method that has all of your logic.


    Brett Samblanet -- Azure Functions

    Thursday, December 15, 2016 2:53 PM

All replies

  • Hi,

    Check out cronmaker.com

    This cron expression 0 0 8,11 ? * MON-FRI * would trigger every weekday at 8am and 11am. 

    Hope this helps!


    Best Regards,
    Carlos Sardo

    Thursday, December 15, 2016 1:43 PM
  • Invalid crone expression when i fill this in??
    Thursday, December 15, 2016 2:16 PM
  • I'm not sure you can write a cron expression for 8am and 11:59am because the minutes are different. But if you can adjust to 12pm (one minute later), this should work:

    0 0 8,12 * * 1-5

    If you must have the minutes different, you may need to set up two separate functions with those specific times. They can each be pretty simple and just call into a helper method that has all of your logic.


    Brett Samblanet -- Azure Functions

    Thursday, December 15, 2016 2:53 PM