简体   繁体   English

Azure 函数 - 挂起队列触发器

[英]Azure Function - Suspend queue trigger

I have azure function with queue trigger and I wanna perform deploy of new version, but before that I need to be sure that function will finish ongoing executions.我有带队列触发器的 azure 函数,我想执行新版本的部署,但在此之前我需要确保该函数将完成正在进行的执行。 Does disabling specific functions (or stopping whole function) will interrupt current executions?禁用特定功能(或停止整个功能)是否会中断当前执行? If yes, is there any other way to suspend new executions and allow finish current one?如果是,有没有其他方法可以暂停新的执行并允许完成当前的执行? And is there any metric which will show me ongoing execution count?是否有任何指标可以显示正在进行的执行计数?

If you mean stop running a few minutes, and then keep running from the point stopped.如果您的意思是停止运行几分钟,然后从停止的点继续运行。 The answer is No .答案是否定的

Actually, you can't suspend the queue trigger functions, because the queue message already consumed and deleted after triggering, whether the whole function execute or not.实际上,您不能暂停队列触发函数,因为队列消息在触发后已经被消费和删除,无论整个函数是否执行。

Even use staging slot swapping, the function would not be interrupted, but would be running still , which is not suspend the queue trigger, either.即使使用staging slot swapping,函数也不会被中断,而是会继续运行,这也不是挂起队列触发器。

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

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