问题
We started seeing some new errors in one of our functions in relation to a DryIoc accessing a disposed Singleton object. There are several posts suggesting to set the FUNCTIONS_WORKER_RUNTIME
to a specific version. I can see in the Azure Portal that our runtime is currently set 2.0.13759.0 which was released on June 1, 2020. There have been a few more releases since that time, which leads me to my question. I'm not necessarily saying it is the cause of our issue, but how can I tell when a consumption plan's runtime was updated?
回答1:
Update Answer:
If you just want to know when the runtime update instead of notify you know when update, it is possiable.
Please follow these steps:
1, Use this url in your browser to go to the kudu of your function app:
https://yourfunctionappname.scm.azurewebsites.net/DebugConsole
2, Click Debug Console -> CMD, and then Go to LogFiles/eventlog.xml, it will store the update time of the runtime. The structure is like below:
This can only meet your needs of seeing the update time, but can not notify you. The notify system of azure function dont have this event.
Original Answer:
FUNCTIONS_WORKER_RUNTIME
is used to specify the language your function is using. I think what you are talking about is FUNCTIONS_EXTENSION_VERSION
.
This doc talks about the update of the function app runtime version update:
https://docs.microsoft.com/en-us/azure/azure-functions/set-runtime-version#automatic-and-manual-version-updates
This a built-in feature, it will not notify you. If you only give the major runtime version, it will update automatically when a minor version is available to update and no breaking changes. If you want to avoid this, you can set the FUNCTIONS_EXTENSION_VERSION
as the minor version instead of major version like ~2
. If you do that, it will not update automatically.
来源:https://stackoverflow.com/questions/62410187/is-there-a-way-to-see-when-the-azure-functions-runtime-was-updated