Azure WebJobs and Deployment Slots

后端 未结 2 1648
予麋鹿
予麋鹿 2021-01-03 19:44

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

相关标签:
2条回答
  • 2021-01-03 20:39

    Using slot sticky settings, you can now set

    WEBJOBS_STOPPED = 1
    

    on the staging slot. This will prevent webjobs from starting on the staging slot, and the setting will remain on the staging slot when the code is swapped into production.

    https://github.com/projectkudu/kudu/wiki/Web-jobs#configuration-settings

    0 讨论(0)
  • 2021-01-03 20:41

    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.

    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.

    0 讨论(0)
提交回复
热议问题