Fix for retrying failing jobs.