job_flag cleanup on retry