Azure - 以无服务器方式定期运行操作

标签 azure azure-functions

我有几个要定期运行的任务。其中每个任务都将根据配置的时间段运行。这意味着我需要根据配置的时间段动态运行任务。

起初,我认为 Azure Functions 适合此任务。但是,我了解到 Azure Functions 只能运行 5 分钟。虽然可以延长到10分钟,但还是达不到我的需要。配置的时间最长可达 1 小时。因此,计时器触发函数将不起作用,因为我需要动态设置函数运行的时间表。

我的问题是,Azure 中有没有办法以动态配置的时间间隔运行代码块(例如 Azure 函数)?

最佳答案

不要将允许函数运行的时间与计划运行的能力混淆。看看creating a timer triggered function 。您可以使用 CRON 表达式来指定要调用函数的计划。

关于Azure - 以无服务器方式定期运行操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53159900/

相关文章:

azure key Vault - secret 更改滞后

azure - Azure Function 运行后如何重置内存使用情况

本地开发时的 Azure Functions 成本

powershell - 无法设置 AzureRmKeyVaultAccessPolicy

spring-boot - 在 Azure Functions : Permission denied with server. 端口上运行 Spring Boot native 应用程序:80

azure - 在 Azure Active Directory 中删除应用程序的 AppRole

azure - 如何在 Azure 资源管理器嵌套模板中定义特定资源组

c# - 如何使用 C# 更新 cosmos db 文档

azure - 无法在 Azure 门户中创建 WebJob

azure - Azure 中的机器学习 : How do I publish a pipeline to the workspace once I've already built it in Python using the SDK?