HOWTO: Retry a job n times and run code on failure of all n times

This could work? Enqueue a new job if last retry fail