pub async fn procedure_state(e: &Pool<MySql>, procedure_id: &str) -> String
Fetches the state of a procedure.