Bulid retry mechanism for fail jobs.