How to prevent "Failed" errors in job scheduler in Craft CMS 3?
I currently cannot see any way of achieving this as the only appropriate event that exists in the yii\queue\Queue class, afterError, is called before the job is failed in the handleError method of craft\queue\Queue. So your best bet would be to convince P&amp;T that there is a valid use case for adding an extra event that will let you prevent the fail error from appearing.