Azure Functions队列触发器正常停止 [英] Azure Functions queue trigger gracefully stopping

查看:82
本文介绍了Azure Functions队列触发器正常停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法停止处理队列中的新项目,同时保持已执行的功能不变,让它们完成?


目前在Azure门户中禁用一个功能后,整个功能应用程序重新启动并取消正在运行的功能。




解决方案

所以只是为了澄清一下,你有一个处理项目的队列触发器功能。您希望阻止它接收任何新项目,完成处理它们然后关闭的项目。纠正 ?

Is there a way to stop processing new items from queue while leaving already executing functions untouched to let them finish?

Currently after disabling one function in Azure portal the whole function app restarts and cancels running functions.


解决方案

So just to clarify, you have a queue trigger function that is processing items. You want to stop it from receiving any new items, finish processing the ones it has then shutdown. Correct? 


这篇关于Azure Functions队列触发器正常停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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