Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stopping an Azure Service does *not* stop the WebJob's continuously running behind it?

I have an Azure WebJob that is running on a pretty simple App Service Standard: 1 Small (plan).

Now, there was a problem with my WebJob (which has 5 functions running) - I wanted to stop 4 of the 5 running functions. I couldn't see how, so I thought I'd just stop the entire WebJob instead.

So I ended up just stopping the App Service.

enter image description here

Great, that was stopped ... but the WebJob was still running and I didn't notice that until a few hours later (as planes were crashing, volcano's exploded and general anarchy continued).

I later noticed that the WebJob blade has it's own Start/Stop button. Da faq?

enter image description here

I thought the WebJobs were tied directly to the App Service.

What is the connection between the two please? How does one effect that other?

Cheers!

like image 975
Pure.Krome Avatar asked Aug 10 '17 06:08

Pure.Krome


1 Answers

As far as I know, the web app and web jobs has different process in the azure.

You could find the Process explorer in the web portal as below:

enter image description here

So the stop in the web app will just closed the app's process(6584 as the image shows).

It will not stop the webjob's process(4648).

These two processes has no connection.

If you want to stop both web app process and webjobs process, I suggest you could try to use this way Full stopping a Web App.

like image 136
Brando Zhang Avatar answered Nov 07 '22 17:11

Brando Zhang