Fixed infinite loop in task retry execute