问题描述
我们开始看到我们的功能之一与DryIoc访问已处置的Singleton对象有关的一些新错误.有几篇文章建议将 FUNCTIONS_WORKER_RUNTIME
设置为特定版本.我可以在Azure门户中看到当前已设置我们的运行时
这只能满足您查看更新时间的需求,而不能通知您.天蓝色功能的通知系统没有此事件.
原始答案:
FUNCTIONS_WORKER_RUNTIME
用于指定函数使用的语言.我认为您在说的是 FUNCTIONS_EXTENSION_VERSION
.
此文档讨论了功能应用程序运行时版本更新的更新:
这是一项内置功能,它不会通知您.如果仅提供主要的运行时版本,则当次要版本可以更新且没有重大更改时,它将自动更新.如果要避免这种情况,可以将 FUNCTIONS_EXTENSION_VERSION
设置为次要版本,而不是像〜2
这样的主要版本.如果这样做,它将不会自动更新.
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?
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:
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.
这篇关于有没有办法查看Azure Functions运行时的更新时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!