What is the reason of your Azure WebJobs stop/restart?

Start/Stop Continuous Azure WebJobs activity log

Published on Monday, July 30, 2018

In this post, I shared how to use Azure activity log to find Azure WebJobs stop/restart problem.

Context

Recently I was working in project where we were processing thousands of events per second using Azure WebJobs. I received a complaint from customer that data processing was stopped for few seconds but now processing. What was the problem? To find that problem, I directly jump into Azure WebJobs logs and found the reason of delay event.

[07/30/2018 08:40:45 > b842d7: SYS INFO] WebJob is stopping due to website shutting down
[07/30/2018 08:40:45 > b842d7: SYS INFO] Status changed to Stopping
[07/30/2018 08:40:50 > b842d7: SYS INFO] WebJob process was aborted
[07/30/2018 08:40:50 > b842d7: SYS INFO] Status changed to Stopped
[07/30/2018 08:41:12 > b842d7: SYS INFO] Status changed to Starting

After looking application diagnostic logs, I got my answer but I was curious to know that why WebJob has restarted and who did? To find this answer is not an easy task but Azure team did very good work and made it very simple.

Open Tab > Diagnose and solve problems > Web App Restarted

Using activity log we can find out user name as well

Happy cloud computing.

Related posts

IoT Smart Bin

Run Azure Functions in a Docker Container

Maintain state in Azure Stream Analytics

Optimize the cost of Azure Cosmos DB

How to use Azure Key Vault Secrets using Manage Identity