【Azure 应用服务】Azure Durable Function(持久函数)在执行Activity Function时候,因为调用函数名称错误而导致长时间无响应问题

简介: 【Azure 应用服务】Azure Durable Function(持久函数)在执行Activity Function时候,因为调用函数名称错误而导致长时间无响应问题

问题描述

在使用Azure Durable Function函数,调用函数链模式来调用多个Activity Function。

函数链:https://docs.azure.cn/zh-cn/azure-functions/durable/durable-functions-overview?tabs=csharp

但是在一次本地的试验中,发现Activity Function 长时间处于 Running 状态,无任何返回或日志输出。

 

问题解答

通过VS Code在本地执行Function 函数,可以直接点击 F5 调试 Python 代码。通过这样的方式,可以发现原来是 Activity Function 名称写错了。 由于 Function 并没有提供任何的错误消息,使得调试体验非常不好。

如图,在测试中,发现 call_activity函数的参数名错误。因为手误而导致了函数执行卡住,长时间无响应。

通过本地调试,找到问题原因: 执行函数名称错误, 协调函数(Orchestration) 无法调用正确的执行函数,所以导致整个函数长时间无响应。

 

参考资料

什么是 Durable Functions?https://docs.azure.cn/zh-cn/azure-functions/durable/durable-functions-overview?tabs=csharp

活动函数:https://docs.azure.cn/zh-cn/azure-functions/durable/durable-functions-types-features-overview#activity-functions

相关文章
|
20天前
【Azure Function】Azure Function中的Timer Trigger无法自动触发问题
【Azure Function】Azure Function中的Timer Trigger无法自动触发问题
|
20天前
【Azure Function & Application Insights】在Azure Function的日志中,发现DrainMode mode enabled Traces。它是什么意思呢?
【Azure Function & Application Insights】在Azure Function的日志中,发现DrainMode mode enabled Traces。它是什么意思呢?
|
20天前
|
缓存
【Azure Function】Function App代码中使用Managed Identity认证获取Blob数据时遇见400报错
【Azure Function】Function App代码中使用Managed Identity认证获取Blob数据时遇见400报错
【Azure Function】Function App代码中使用Managed Identity认证获取Blob数据时遇见400报错
|
20天前
|
Python
【Azure Function】发布 Python Function 到 Azure 成功,但是无法显示Function列表
【Azure Function】发布 Python Function 到 Azure 成功,但是无法显示Function列表
|
20天前
|
C#
【Azure Function】Function App启动时出现 Failed to open local port 4001 错误,这是什么情况呢?
【Azure Function】Function App启动时出现 Failed to open local port 4001 错误,这是什么情况呢?
|
20天前
|
C# C++
【Azure Function】在VS Code中创建Function项目遇见 No .NET worker runtimes found
【Azure Function】在VS Code中创建Function项目遇见 No .NET worker runtimes found
|
20天前
【Azure Function & Application Insights】调用Function上传和下载文件,有时候遇见大于1MB的文件的日志没有记录在Application Insights中
【Azure Function & Application Insights】调用Function上传和下载文件,有时候遇见大于1MB的文件的日志没有记录在Application Insights中
|
20天前
|
API C++ Python
【Azure Function】示例运行 python durable function(model V2)
【Azure Function】示例运行 python durable function(model V2)
|
20天前
|
C++
【Azure Function App】在VS Code中,创建好Function App后部署到Azure中,无法选择Subscriptions
【Azure Function App】在VS Code中,创建好Function App后部署到Azure中,无法选择Subscriptions
|
20天前
|
安全 Oracle Java
【Azure Function】Azure Function中使用 Java 8 的安全性问题
【Azure Function】Azure Function中使用 Java 8 的安全性问题

热门文章

最新文章