Retry a task up to 10 times only