pub fn transition_run( conn: &Connection, id: &str, to: RunState, outcome: Option<&str>, error: Option<(&str, &str)>, ) -> Result<Run, String>