MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / clear_context

Method clear_context

python/src/tools/executor.rs:438–448  ·  view source on GitHub ↗

Clear execution context

(&self)

Source from the content-addressed store, hash-verified

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> {

Callers

nothing calls this directly

Calls 1

resetMethod · 0.80

Tested by

no test coverage detected