Reputation: 15
I have set the cronn expression to 0 0 23 * * 2,5
so that it may run every Tuesday, Friday at 11 pm.
However when deployed to Azure, the azure function doesnt trigger. Not sure why that is happening. No error is being thrown.. If I switch the cronn expression to 0 */1 * * * *
to run every minute, it starts working as intended. But switching back to the first expression causes it not to be fired. What is it that I may be doing wrong?
Any help is appreciated.
I have also tried0 0 23 * * Tue,Fri
Upvotes: 0
Views: 499
Reputation: 15754
The cron expression is correct. I test it in my side and reproduce your problem. It may be caused by timezone. Please check the timezone of your function, your can refer to this document about the timezone. If you still not sure the timezone of your function app, you can also test 24 hours one by one. For example test with 0 {nextMin} 0 * * *
and then test with 0 {nextMin} 1 * * *
, then 0 {nextMin} 2 * * *
....
Upvotes: 0