Azure的WebJobs和部署插槽 [英] Azure WebJobs and Deployment Slots

查看:239
本文介绍了Azure的WebJobs和部署插槽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我部署一个QueueTrigger(以app.config中定义的队列连接)到一个部署插槽连续运行Azure的WebJob会发生什么(例如转移)?

What will happen when I deploy a continuously running Azure WebJob with a QueueTrigger (queue connection defined in app.config) into a Deployment Slot (for example "Staging")?

将它开始运行,并收听消息队列中或将只在生产时隙开始?

Will it start to run and listen to messages in the queue or will only start in the Production slot?

我担心的是,如果将刚开始处理从队列中的消息,甚至强硬它不是在生产槽呢。如果是这种情况,应该在队列的ConnectionString从app.config中到Azure的网站配置感动,所以我临时和生产插槽可以在不同的队列运行?

My fear is that if will just start processing messages from the queue even tough its not in the Production slot yet. If this is the case, should the queue connectionstring be moved from app.config into Azure Website config so my Staging and Production slots can run on different queues?

推荐答案

是的,它将开始在临时插槽运行。

Yes, it will start running in the staging slot.

如果你不希望这样做的话,就指着一个临时队列确实是要走的路。

If you don't want this, then pointing it to a staging queue is indeed the way to go.

更新(2014年11月24日):你现在可以选择让某些设置和放大器;连接字符串'粘插槽使用PowerShell的。看到这个帖子了解详情。

Update (11/24/2014): you can now chose to make certain setting & connection strings 'sticky to the slot' using PowerShell. See this post for details.

这篇关于Azure的WebJobs和部署插槽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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