In the state of California, generally, the courts will dismiss a civil action for failure to prosecute if it is not brought to trial within five years after its commencement (CCP §§ 583.310, 583.360); but there is no deadline as to when the trial must be completed. Therefore, there is no time limit set as long as the trial has started, regardless of which stage it is in.
In such cases, dismissals may occur upon request by a party seeking affirmative relief (or by any party upon consent of all other parties), or by the court in case the plaintiff abandons the case. [CCP § 581(b), (c), (d), (e)]. Working with a lawyer who is an expert in divorce and family law will help significantly in dealing with issues and questions regarding dissolution rules and procedures.