#1911·graphiti

MCP queue drops episodes on transient extraction errors (no retry; episode left with 0 edges)

Author: DonTradeLabCreated Sep 23, 2026Updated Sep 30, 2026

What happens

The MCP server's queue worker treats transient extraction failures as terminal and drops the episode: add_memory is accepted ("queued for processing"), then the worker logs an error and moves on. The episode stays stored in the graph with 0 edges — its facts are silently lost, with no retry, no backoff and no counter/alert.

Environment

  • Image: zepai/knowledge-graph-mcp:1.1.0-graphiti-0.30.1-standalone
  • DB: FalkorDB (graphiti fulltext + vector indexes)
  • LLM: deepseek-flash via api.deepseek.com (structured_output_mode: json_object)
  • Embedder: local nomic-embed-text (Ollama)
  • Volume: ~700 episodes ingested over a few days

The three failure shapes we see in docker logs (all end with the episode dropped)

services.queue_service - ERROR - Failed to process episode None for group opencode: 1 validation error for ExtractedEntities
services.queue_service - ERROR - Error processing queued episode for group_id opencode: 1 validation error for ExtractedEntities

(the model returned the JSON Schema itself — same root as #912)

graphiti_core.llm_client.openai_generic_client - ERROR - Error in generating LLM response: LLM returned an empty response
graphiti_core.driver.falkordb_driver - ERROR - Error executing FalkorDB query: Query timed out
services.queue_service - ERROR - Failed to process episode None for group opencode: Query timed out

Impact measured on our side

  • Of 686 episodes stored, 242 have 0 edges; 240 of those are short messages that legitimately yield no facts, but the 2 substantive ones are real losses.
  • Re-driving the same content via add_memory usually succeeds on retry (2 of 3 attempts in our case), which suggests the failures are transient (LLM variance / load), not content-dependent.

Ask

  1. Retry queued episodes on transient errors (LLM empty response, validation errors, query timeouts) with exponential backoff + jitter, up to N attempts.
  2. If retries are exhausted, keep the episode but surface it (counter/metric/log line with the episode uuid), so operators can reconcile instead of silently losing facts.

We built an external reconciler (find episodes with 0 edges, re-drive them) as a workaround, but a retry in the queue would fix this for every deployment.