The municipal judge, when any person is arraigned before the municipal court charged with a violation of any of the ordinances, regulations, or rules of the city, may, for good cause shown by either side, continue the hearing, and the accused shall be required to give bond and security for his or her appearance at the time appointed for trial or be imprisoned to await trial. If such bond is given and the accused shall fail to appear at the time fixed for the trial, the bond may be forfeited by the municipal judge and an execution issued thereon by serving the defendant, if any to be found, and his or her securities with a rule nisi at least five days before the time of hearing of such rule nisi.