1
votes

I have a web site running in azure app service. And it has also web jobs deployed.

Now I am creating a new slot for my app service, and deploying the web site code to the new slot.

When I swap the slots, the web jobs still run in the production slot or would they be swap to the new slot?

Thanks!

1

1 Answers

0
votes

Under the covers, Webjobs live in your App Service's site \ wwwroot \ App_data \ jobs \ continuous | triggered folder. A slot swap is a set of actions that are performed that ultimately end in a routing rule switch within Azure.

Your webjobs will participate in a slot swap for the App Service.

However, there are some interesting corner cases. For example, let's assume that your staging and production application settings are identical and you have triggers defined for something like a ServiceBusTrigger. Unless you stop your staging slot Webjobs, your staging Webjob instance triggers will continue to poll your production resources, meaning you can be executing both your production and slot Webjob code.