What Does Azure WebJob "Pending Restart" Mean?

randomsolutions picture randomsolutions · May 15, 2014 · Viewed 16k times · Source

I know this seems like a stupid question, but what does "Pending Restart" mean? I have stopped and restarted my WebJob numerous times and that doesn't seem to fix it. Does it mean I have to restart my website? What caused my job to get in this state in the first place? Is there any way I can prevent this from happening in the future?

Answer

Victor Hurdugaci picture Victor Hurdugaci · May 16, 2014

Usually, it means that the job fails to start (an exception?). Look in the jobs dashboard for logs.

Also, make sure that if the job is continuous, you actually have an infinite loop that keeps the process alive.