I have an Azure Web Site. The site is automatically built and deployed via TFS online (visualstudio.com). The site has Web Site Mode = Standard
, and Always On = Enabled
.
I also have a continuous Azure Web Job in the form of a console application. The web job is not included in the automatic deployment. Instead it is updated manually. (Eventually I'm looking to deploy it automatically as well, but not for the moment.)
My web job runs fine, once every minute. I can follow its progress in the job log available on the Azure portal. It can run for several days without problem.
But when I deploy a new version of the web site, the web job stops, and does not start again. Unless you visit the Web Job tab on the Azure portal, then it starts again. (The web job files are not overwritten by the deployment of the web site.)
Why is this? Is there anything I can do to make it not stop, or at least start again once deployment is complete?