azure-functions - 如何在没有绑定(bind)的情况下运行 Azure Function

标签 azure-functions azure-functions-runtime

Azure Functions 是否可以在没有绑定(bind)(计时器、主题、队列、HTTP)等的情况下运行?

我的 Azure Function 是一个我想在循环中连续运行但不完成的进程,除非通过 U.I 停止 Azure Function。

我可以让 Azure Function 运行每天运行的计时器触发器,并让 Azure Function 在 23 小时 59 分钟后完成,但我不想采用这种方法。

最佳答案

Azure 的 Durable Functions(预览版)可能能够实现这一点:

参见模式 #4,有状态单例:https://learn.microsoft.com/en-us/azure/azure-functions/durable-functions-overview

While Durable Functions is not an implementation of the actor model, orchestrator functions do have many of the same runtime characteristics. For example, they are long-running (possibly endless), stateful, reliable, single-threaded, location-transparent, and globally addressable. This makes orchestrator functions useful for "actor"-like scenarios.

关于azure-functions - 如何在没有绑定(bind)的情况下运行 Azure Function,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48029227/

相关文章:

python - 如何下载 Azure Function (Python) .zip 文件?

azure - 使用 Cosmos DB 绑定(bind)从 Azure 函数执行 Cosmos DB 服务器端触发器

dependency-injection - 如何使用 ILogger 为 azure 函数(Httptrigger)编写单元测试

Azure Function 给出错误 : System. 此平台不支持绘图

linq - Azure 函数 CosmosDB 查询序列化

Azure IoT 中心、EventHub 和函数

azure - 为什么应用程序洞察将 400 错误请求记录为成功请求而不记录异常

docker - Http 在 Docker 中使用非匿名 authLevel 触发 Azure Function

azure - 添加本地计算机作为 Azure Function Worker