Updated clean failed jobs to use task specific max retries