Cal. Civ. Code § 8462
Notwithstanding Section 583.420 of the Code of Civil Procedure, if an action to enforce a lien is not brought to trial within two years after commencement of the action, the court may in its discretion dismiss the action for want of prosecution.