How to prevent Azure WebJob from starting up after publishing?

前端 未结 3 1318
南旧
南旧 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条回答
  •  旧时难觅i
    2020-12-16 15:42

    To deploy a continuous WebJob in a stopped state simply add a file called disable.job at the root of your WebJob (binaries), this will tell the framework that the WebJob is currently stopped.

    To view this behavior you can simply stop a continuous WebJob and see that this file is generated and placed at the WebJob's directory.

提交回复
热议问题