简体   繁体   English

Azure 队列触发器函数

[英]Azure Queue Trigger function

Azure Queue 触发的函数应用程序如何决定方法是否成功?

When the message is read from the queue and processed by your function app then the method becomes successful.当消息从队列中读取并由您的函数应用程序处理时,该方法将成功。 Once the message has been read from the queue we should no longer be able to see the message in the queue.从队列中读取消息后,我们应该不再能够看到队列中的消息。

Since your trigger is the Azure Queue, you can utilize the queue error codes and handle that error codes within your Azure Function app.由于触发器是 Azure 队列,因此可以利用队列错误代码并在 Azure Function 应用程序中处理该错误代码。 This documentation about Azure Queue storage output bindings for Azure Functions might be helpful to you for reference in handling those codes.此有关Azure Functions 的 Azure 队列存储输出绑定的文档可能对你处理这些代码时的参考有所帮助。

And based on those codes, it's now your preference for how your function app behaves.根据这些代码,您现在可以选择函数应用的行为方式。 Either return RESTful response or throw an exception if there's an error.如果出现错误,要么返回 RESTful 响应,要么抛出异常。 :) :)

Have a good learning journey!祝您学习愉快!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM