New and old WebJob versions both running following a deployment

情到浓时终转凉″ 提交于 2019-12-08 05:38:18

问题


I have a continuous WebJob deployed via the Kudu API to /api/continuouswebjobs/{job name} as outlined here. The App Service I'm deploying to has just a single instance running.

On occasion it's looking like the previous version of a WebJob is not removed following a deployment and it runs concurrently with the new version. This can continue to occur and I've seen up to nine processes running concurrently.

Application names redacted but they are identical for each process:

Stopping the WebJob via the Azure Portal causes the process under w3wp (scm) to stop but not the other "detached" processes.

The company I am working with has seen this with different WebJobs across different App Service Plans. We've also confirmed this outside of Azure with our own logs, where we see multiple versions of the same application running.

Update 1

I couldn't reproduce the issue using David's steps from the comments. I did however revert back to our old release process which stopped and started the App Service pre and post release. I've since realised this wasn't needed as WebJobs continue to run under scm even when the App Service is stopped.

However...

Post-deploy while the WebJob is at state "Starting":

Post-deploy while the WebJob is at state "Running":

I've created a dummy site named "dummy739047" on the same App Service Plan as per the Kudu docs if a further investigation is needed.

来源:https://stackoverflow.com/questions/49904159/new-and-old-webjob-versions-both-running-following-a-deployment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!