停止/杀死正在运行的Azure功能 [英] Stop/Kill a running Azure Function
问题描述
我注意到我有多个正在运行的功能,但从未结束,因为它们从未到达context.done()
调用. (这是一个NodeJS函数).
I noticed I have multiple functions running but never ending because they never get to the context.done()
call. (This is a NodeJS function).
如何在不删除整个功能的情况下停止这些正在运行的功能?
- 在管理"选项卡中禁用该功能可阻止其启动更多功能,但不会终止现有实例.
- Kudu不允许我访问TASKKILL.
推荐答案
您可以简单地重新启动Function App网站,这将终止所有功能(Function App设置>转到App Service设置>重新启动).
You have the ability to simply restart the Function App site, which will kill any functions (Function App Settings > Go To App Service Settings > Restart).
如果您正在执行动态计划,请确保已升级到最新版本的运行时,因为超时功能现已生效,并且会阻止功能无限期执行.
If you are running on a dynamic plan, please make sure you have upgraded to the latest version of the runtime, as a timeout feature is now in effect and will prevent functions from executing indefinitely.
这篇关于停止/杀死正在运行的Azure功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!