17024 contains no explicit limitation on the required delay between failing an exam and doing a retake.
However, your assessor will want to review your consideration of the number of alternative forms available, the likelihood of memorizing the items, and the possibility of practice effect on examination results. A standard would be 6 weeks to 6 months.