How does a Queue processor re-queue’s items after a failure happens?

Please find the attached screenshot. This will provide you exactly where in the process.