Cal. Penal Code § 1274
When the admission to bail is a matter of discretion, the Court or officer to whom the application is made must require reasonable notice thereof to be given to the District Attorney of the county.