How to prevent Azure WebJob from starting up after publishing?

前端 未结 3 1324
南旧
南旧 2020-12-16 15:14

We have an Azure Website setup with a \"staging\" deployment slot, and we use a continuous Azure WebJob to process long-running background jobs. It appears that when you pub

3条回答
  •  孤街浪徒
    2020-12-16 15:40

    AFAIK, there is no out of the box solution for that. However, you can set an app setting and have the webjob code check for it when it starts. Also, you can use the HTTP_HOST variable to figure out the environment.

提交回复
热议问题