Azure功能-设置触发延迟 [英] Azure Function - Set Trigger Delay

查看:98
本文介绍了Azure功能-设置触发延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Azure功能,在消息进入存储队列后被触发

I am using Azure function that being trigger after message get into storage queue

我希望在X分钟后触发我的Azure函数(由于我连接的是第三方),而不仅仅是在消息进入队列时触发

i would like my Azure function to be trigger after X amount of minutes (due to the 3rd party i am connecting limitation) and not just when message get into the the queue

是否可以通过一些设置来配置队列输出或函数输入触发器?

Is it possible to configure the queue output or function input trigger with some setting for that?

谢谢

osroei

推荐答案

如果您希望每隔X分钟触发一次Azure函数,则可以使用 计时器触发功能.
但是,如果要在消息进入存储队列后X分钟触发函数,那么可以在函数代码中使用睡眠计时器吗?

据我了解,尚无此配置设置.
我建议通过 用于Azure功能的Azure队列存储绑定  doc,提供有关可用于队列存储触发器和输出绑定的配置的详细信息.
If you are looking to trigger Azure function after every X amount of minutes, then you can use Timer Triggered function.
But if you want to trigger the function, X minutes from when a message gets into storage queue, then could you use sleep timer inside your function code?

As far as my understanding, there is no such configuration setting for this.
I would recommend going through Azure Queue storage bindings for Azure Functions doc that provides details on the configurations available for Queue Storage Triggers and output binding.


这篇关于Azure功能-设置触发延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆