Remove "Build failed" TODO if it has been auto-retried
Description
Currently if a job fails we add a "Build failed" TODO. It gets removed when someone retries the job.
Unfortunately this does not work for auto-retries, because we retry a job BEFORE job todos hooks are execute. This is kind of a race condition, thus probably a ~bug .
Edited by Grzegorz Bizon