Background task status transitions
Explains the background task statuses over a transition diagram
A background task in the queue has a status to help the background task service manage it's lifetime.
A background task is inserted into the queue with the status Pending.
Once the background task service executes it the status is updated to Executing .
if the background task executes successfully then the background task service will update it's status to Success
if the background task fails then the service will process it through the error handler and based on the background task's handler configuration
- it will retry by setting the status to
Pending - it will stop executing by setting the status to
Failed
Figure 1. Background task status transition diagram