RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
refactor(go): drop dead KvrocksCheckpointExists probe (#19864)
xugangqiangda0ecdb7e3a1
diff --git a/internal/agent/canvas/checkpoint_store.go b/internal/agent/canvas/checkpoint_store.goindex 4f27136593..ab81f4f2a3 100644--- a/internal/agent/canvas/checkpoint_store.go+++ b/internal/agent/canvas/checkpoint_store.go@@ -65,19 +65,6 @@ func NewKvrocksCheckPointStoreWithClient(client *redis.Client, ttl time.Durationreturn &KvrocksCheckPointStore{client: client, ttl: ttl}}-// KvrocksCheckpointExists reports whether a pipeline checkpoint is present for-// id. It is used by ingestion progress handling to distinguish a fresh run-// from a resume: resumed nodes may not emit lifecycle events again, so their-// previous completed progress rows must be retained.-func KvrocksCheckpointExists(ctx context.Context, id string) (bool, error) {- rc := kvrocks.Get()- if rc == nil || rc.GetClient() == nil {- return false, errors.New("checkpoint store: kvrocks client not initialized")- }- found, err := rc.GetClient().Exists(ctx, checkpointKeyPrefix+id).Result()- return found > 0, err-}-// Get implements eino's CheckPointStore.Get. Returns (nil, false, nil) when// the key does not exist (redis.Nil) so callers can distinguish "missing"// from "present-but-error".