Richard
Richard

Reputation: 1692

Azure Function app periodically not firing on trigger or timer

I have an Azure Function app with 4 functions

All functions work as expected when first deployed but after a period of time the functions stop running and the app appears to be scaled down with no servers online. At this point the functions are never triggered again unless I either restart the app, or drill into a function and view details of it (supposedly, forcing the function to start up).

I have the exact same code deployed to a different environment and it runs perfectly and has never encountered this issue. I've checked all the settings and configuration and can't see any material differences between the two.

This is really frustrating and is becoming a big issue. Any help would be much appreciated.

Function App is hosted in Australia Southeast.

This is the last execution (as of now) 10:45 PM UTC - Function started (Id=4d29555b-d3af-43d7-95e9-1a4a2d43dc46)

The event triggered function should run every few minutes as the IoT Hub it's triggering from has a steady stream of events coming in. When I prod the function (or restart it) and it comes to life it quickly churns through a backlog of messages queued in the IoT Hub.

Upvotes: 1

Views: 850

Answers (1)

David Ebbo
David Ebbo

Reputation: 43193

I see the problem: you have comments in your host.json, which makes it invalid and throws off the parser at the scale controller level.

Admittedly, the error handling is quite poor here. But anyway, remove the commented out logger, and it should all work.

Upvotes: 3

Related Questions