MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / has_procedure

Method has_procedure

nodedb-test-support/src/cluster_harness/node/inspect.rs:178–185  ·  view source on GitHub ↗

Read a procedure record from this node's local `SystemCatalog`.

(&self, tenant_id: u64, name: &str)

Source from the content-addressed store, hash-verified

176
177 /// Read a procedure record from this node's local `SystemCatalog`.
178 pub fn has_procedure(&self, tenant_id: u64, name: &str) -> bool {
179 self.shared
180 .credentials
181 .catalog()
182 .as_ref()
183 .and_then(|c| c.get_procedure(tenant_id, name).ok().flatten())
184 .is_some()
185 }
186
187 /// Check whether a scheduled job with the given name exists in
188 /// this node's in-memory `schedule_registry`.

Calls 4

get_procedureMethod · 0.80
as_refMethod · 0.45
catalogMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected