convert from triggered to continuous?

497 Views Asked by At

I have a web job that is triggered. I want to switch to continuous. I use ci/cd to deploy.

Is this the right steps :

  1. csproj. change triggered to continuous
  2. settings.job just say {}

Also, I will change the c# host to use a loop with a sleep(xxx).

Am I missing anything? Peter

2

There are 2 best solutions below

0
On BEST ANSWER

For those who use Visual Studio to develop and publish to Azure,

You may go in the Publish page and change the Webjob Type from Triggered to Continuous

enter image description here

0
On

You can use the powershell CI/CD deploy to change the triggered to continuous and vice versa.

$deployUrl = "$($env:scmApiUrl)/zip/site/wwwroot/App_Data/jobs/$($env:scheduleName)/$($env:webJobName)/"

Here you can add the scheduleName whether triggered or continuous

Follow the steps to achieve this see here

More info check here

To manually change the webjob type