Azure function time trigger not resuming unless I visit the azure portal
See original GitHub issueInvestigative information
- Timestamp: 2018-02-13T15:35:00.0076347+00:00 (successfull run) / 2018-02-14T08:02:05.0220800+00:00 (next successfull run … no activity in between, this is supposed to be an every 5 mins trigger)
- Function App version (1.0 or 2.0-beta): Runtime version: 1.0.11535.0 (~1)
- Function App name: FdriverFunctionsDemo
- Function name(s) (as appropriate): PullXmlFilesTimer
- Invocation ID: 5a170853-ea00-456f-9ae0-b151454f2048 / c16cf1c2-cdf2-49b1-92ee-209806694ce1
- Region: West-Europe
Repro steps
I have a timer triggered azure function with schedule = “0 */5 * * * *”, the function is supposed to run every 5 minutes. It stops after a few invocations… I don’t see any error in the various available logs. …
Expected behavior
The function should run every 5 minutes
Actual behavior
The function runs a few times and then stops. There are no new invocations unless I manually go the azure portal website and look at the azure function… then it starts for a few rounds and stops again.
Known workarounds
N/A
Related information
- Programming language used : C#
- Links to source : Not publically available
- Bindings used
{
"type": "timerTrigger",
"schedule": "0 */5 * * * *",
"useMonitor": true,
"runOnStartup": false,
"name": "myTimer"
}
]
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:38 (16 by maintainers)
Top Results From Across the Web
Azure function (Time trigger) is triggering only when ...
1 Answer 1 ... Yes it is running every two hours, only when my Azure portal is open. As soon as I lose...
Read more >Azure Timer Trigger not firing - Microsoft Q&A
The most common cause for Azure Functions not getting triggered is that triggers are not synced properly. You can sync triggers in one...
Read more >Timer trigger for Azure Functions
A timer trigger lets you run a function on a schedule. This is reference information for Azure Functions developers. If you're new to...
Read more >Long Interval Timer Trigger Function not firing on ...
Background: I have an Azure Function timer trigger that kicks off a durable function orchestration. This goes on to check if a file...
Read more >Azure Functions TimeTrigger do not fire - Microsoft Q&A
Hi I have a function app that has multiple triggers, each with different type of triggers. But the timetriggers are not firing.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have filed an issue here to make it so we are a little more lenient with that host.json file.
@vludax I suspect that our internal keep-alive logic for HttpTriggers is a little bit different than our keep-alive logic for TimerTriggers. At an HTTP request every 5 minutes, you function application was always kept alive, so even though the trigger was never synchronized, since your application was never recycled, that worked out fine. I recommend manually synchronizing once you remove the comments from host.json, because until your http trigger is synchronized, if your application is ever recycled, it may stop triggering on HTTP requests until the application is loaded up again.
I am going to close this issue for now, as the original post has been addressed, and we seem to have resolved the other issues that have come up here. If anyone has any issues with triggers not firing, your host.json is valid and the function was deployed using one of the supported methods detailed in this thread, please open up a new issue and we will investigate it there.
@rhichaj please create a separate issue in https://github.com/Azure/azure-functions-host/issues