Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Azure Webjob stop when Azure App Service is stopped

In our current setup there are 2 slots for an Azure App service, the question that I have is, when the slot is stopped would it also shut down the webjob that is deployed on that slot or would the web job continue to run?

like image 757
user457485 Avatar asked Mar 17 '17 20:03

user457485


People also ask

What is difference between WebJob and Azure function?

Summary. Azure Functions offers more developer productivity than Azure App Service WebJobs does. It also offers more options for programming languages, development environments, Azure service integration, and pricing. For most scenarios, it's the best choice.

Can we stop Azure App Service?

From the Azure Portal, navigate to List of App Services Pages. You can easily get there if you have App Services pined in your favorites menu. Select the checkboxes for the App services to stop or restart. That's it.


1 Answers

It is possible to run an Azure WebJob even when the Azure App Service Web App is not running.

Though you can force the WebJob not to run or stop when the Web App is running using WEBJOBS_STOPPED setting in your Web App's "Application Settings"

Take a look at this article about this subject for more details:

https://blogs.msdn.microsoft.com/benjaminperkins/2017/03/01/failed-to-run-webjob/

The following picture shows a running WebJob when the web app is not running:

enter image description here

like image 58
Aram Avatar answered Oct 29 '22 11:10

Aram