Continuances are regulated by this chapter, and may always be granted by the court, upon good cause shown, in any stage of the action.