mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-26 08:02:31 +00:00
fix: skip the resource type fingerprint query when no index is loaded
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8d96da34c3
commit
da85d62694
@@ -736,6 +736,9 @@ async fn resource_type_index(
|
||||
/// unsearchable until then; this re-indexes the resource types alone when the table changed.
|
||||
#[cfg(feature = "embedding")]
|
||||
pub async fn refresh_resource_type_embeddings(pg_db: &Pool<Postgres>) -> Result<()> {
|
||||
if EMBEDDINGS_DB.read().await.is_none() {
|
||||
return Ok(());
|
||||
}
|
||||
let fingerprint = resource_types_fingerprint(pg_db).await?;
|
||||
let (model_instance, hub_embeddings, custom_vectors) = match EMBEDDINGS_DB.read().await.as_ref()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user