Vijay Pratap Singh

Vijay Pratap Singh

  • 342
  • 5.1k
  • 468.6k

My WebJob terminating without throwing an exception?

Nov 22 2022 5:09 AM

The web job terminates and doesn't seem to throw an exception when it does and it doesn't seem to be possible to debug a web that's not of the continuously run variety (?). Therefore, my debugging has mostly been of the Console.WriteLine variety. Because of that and the asynchronicity, I haven't been able to nail down exactly where it's crashing - I thought it was while accessing the database, but after mucking with it, the database access started working.. ugh. My next best guess is that it dies during an await or other async plumbing. It does, however, crash within two try/catch blocks that have finally that log results to Redis and azure storage. None of that happens. I can not figure out, or imagine, how this process is crashing without hitting any exception handlers..?

Has anyone had this problem with an azure web job? Any idea what I should be looking for or any tips for debugging this?


Answers (1)