Azure WebJobs and Deployment Slots

后端 未结 2 1680
予麋鹿
予麋鹿 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

提交回复
热议问题