pub fn set_generation_failed( conn: &Connection, id: &str, failed: bool, ) -> Result<(), CoreError>
Set or clear the generation_failed flag on a pattern.