Azure-docs: Possible Status for Webjobs

Created on 3 Jun 2019  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

Hello!

I'd like to know if there a list of all possible "Status" a Webjob can go, and what they mean.

Just as an example, what does it mean when a triggered webjob is on "Aborted" status? I want to monitor the webjobs, but I'm not sure what statuses I should be concerned, what they mean.

The doc I was reading and hoping to find the answer to this question is here:

https://docs.microsoft.com/en-us/azure/app-service/webjobs-create

Thanks,
Alisson


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

app-servicsvc cxp product-question triaged

All 6 comments

@AlissonRS please provide us a link to the documentation you are referring to so we can better assist.

@MicahMcKittrick-MSFT sorry, here you are (I also updated my question):

https://docs.microsoft.com/en-us/azure/app-service/webjobs-create

Thanks for that! I will assign to @BryanTrach-MSFT to look into this further

@AlissonRS Below is a list of common webjob statues and a brief description. I hope this answers your question.

  • Initializing - The site was just started and the WebJob is doing it's initialization process.
  • Starting - The WebJob is starting up the process/script.
  • Running - The WebJob's process is running.
  • PendingRestart - The WebJob's process exited (for any good or bad reason) in less than 2 minutes since it started, for a continuous WebJob it's considered that something was probably not right with it (some exception during start-up probably as mentioned by Victor), at this point the system is waiting for 60 seconds before it'll restart the WebJob process (hence the name "pending restart").
  • Stopped - The WebJob was stopped (usually from the Azure portal) and is currently not running and will not be running until it is started again, best way to see this is as disabled.
  • Aborted - This can occur for a number of reasons such as the webjob running for 20 minutes and hitting the timeout marker.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@BryanTrach-MSFT thanks for your help, that was very helpful.

There are continuous and triggered webjobs. In what state should a triggered webjob be when it's not processing/running?

e.g a webjob that is triggered by a storage queue, but there has not been any messages enqueued for a few days, therefore the webjob has not been running since then. What is the status the webjob will be while waiting for new messages after a few days?

Thanks!
Alisson

@AlissonRS Good catch. The status for that would be 'Ready', which means the webjob is in a ready state to be triggered and complete the request.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jharbieh picture jharbieh  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments