Continuous Web Job stops even if Always On is enabled

人走茶凉 提交于 2019-12-18 09:49:10

问题


I have created an Azure Web App on Standard Service Plan with Always On option enabled. On this App I haven't published any web site. I have only published a Continuous Web Job.

The problem is that although I have enabled the Always On option, I can see in the Web Job logs that the Web App stopped.

Here are the Web Job logs:

[09/29/2015 07:35:26 > 189701: SYS INFO] WebJob is still running
[09/29/2015 08:51:54 > 189701: SYS INFO] WebJob is stopping due to website shutting down
[09/29/2015 08:51:54 > 189701: SYS INFO] Status changed to Stopping
[09/29/2015 08:52:04 > 189701: SYS INFO] Status changed to Starting
[09/29/2015 08:52:25 > 189701: SYS INFO] Run script 'ExchangePullNotifications.exe' with script host - 'WindowsScriptHost'
[09/29/2015 08:52:25 > 189701: SYS INFO] Status changed to Running

回答1:


Is this happening multiple times, or just that one time? If anything causes the site to restart (e.g. changes to the site settings), then this behavior is normal. It should have no ill effect as long as it restarts quickly after.

A concern would only exist if it was to stop and not restart, and that should not happen.




回答2:


The problem seems to be that I use the Azure SDK in my application which is not supported in the WebApp environment.



来源:https://stackoverflow.com/questions/32844626/continuous-web-job-stops-even-if-always-on-is-enabled

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