Clear execution history
(&self)
| 319 | |
| 320 | /// Clear execution history |
| 321 | pub fn clear_history(&self) -> PyResult<()> { |
| 322 | let mut history = self.execution_history.write().map_err(|e| { |
| 323 | PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!( |
| 324 | "Failed to acquire history lock: {}", |
| 325 | e |
| 326 | )) |
| 327 | })?; |
| 328 | history.clear(); |
| 329 | Ok(()) |
| 330 | } |
| 331 | |
| 332 | /// Get registry statistics |
| 333 | pub fn get_stats(&self) -> PyResult<String> { |