Reputation: 3
I am facing this problem: I created Azure Function in Python which will trigger on 12th hour of every day. But the problem is that whenever I open this function in portal.azure.com my function triggers and execute (regardless of scheduled time). I have added this in my function.json file but still facing this problem:
{
"scriptFile": "__init__.py",
"bindings":
[{
"name": "mytimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 1 13 * * *",
"RunOnStartup": false,
}]}
Upvotes: 0
Views: 300
Reputation: 124
What does the logs say when you start the function? Usually the logs prints the next 5 runs for the fucntion.
0 1 13 * * *
should be at the first minute past 1pm how about 0 0 2/12 * * *
2/12
is every 12th hour between 2am and 11pm
{second} {minute} {hour} {day} {month} {day of the week}
As far as i read the cheat sheet here, it could be why it runs every second
Upvotes: 0