How to debug webjobs in Web App

Yan Xie 40 Reputation points Microsoft Employee
2023-07-10T07:53:40.52+00:00

I deployed multiple web jobs on an Azure Web app, but one of the web jobs consistently gets stuck during execution. Although the status indicates that it's in progress, it stops generating any logs, making it difficult to identify the issue. I couldn't reproduce the problem locally, and there are no exceptions logged in the Web App Application Insights. I would appreciate your guidance on possible approaches to debug and resolve this issue.

<Azure><Web App><Descritpion><Title>Snipaste_2023-07-10_15-50-54

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,908 questions
{count} votes

Accepted answer
  1. Ben Gimblett 3,410 Reputation points Microsoft Employee
    2023-07-10T08:52:08.4233333+00:00

    @Yan Xie - is there anything in the code that could be causing a problem - for example you're multi-threading and hitting some kind of issue there (locking etc) ?

    I assume you have implemented the code in a way that shutdown (if it is requested) is handled gracefully? REF https://github.com/projectkudu/kudu/wiki/WebJobs

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Yan Xie 40 Reputation points Microsoft Employee
    2024-04-22T07:51:47.35+00:00

    Troubleshoot with Visual Studio - Azure App ServiceThis tutorial shows how to use Visual Studio tools to help debug an app in App Service, by running in debug mode remotely or by viewing application logs and web server logs.

    0 comments No comments

  2. Yan Xie 40 Reputation points Microsoft Employee
    2024-04-23T06:20:56.6833333+00:00

    Incremental enrichment refers to the use of cached enrichments during skillset execution so that only new and changed skills and documents incur pay-as-you-go processing charges for API calls to Azure AI services.

    0 comments No comments