Clear execution context
(&self)
| 436 | |
| 437 | /// Clear execution context |
| 438 | pub fn clear_context(&self) -> PyResult<()> { |
| 439 | let mut context = self.execution_context.lock().map_err(|e| { |
| 440 | PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!( |
| 441 | "Failed to acquire context lock: {}", |
| 442 | e |
| 443 | )) |
| 444 | })?; |
| 445 | |
| 446 | context.reset(); |
| 447 | Ok(()) |
| 448 | } |
| 449 | |
| 450 | /// Get execution statistics |
| 451 | pub fn get_execution_stats(&self) -> PyResult<String> { |