From 1271e38f2d30ea99350dad7b288b706c50dbeb7f Mon Sep 17 00:00:00 2001 From: bsiggel Date: Fri, 27 Mar 2026 11:29:06 +0000 Subject: [PATCH] feat(cron): Update graphParsingStatus documentation and refine query conditions for new Graph builds --- src/steps/crm/akte/ragflow_graph_build_cron_step.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/steps/crm/akte/ragflow_graph_build_cron_step.py b/src/steps/crm/akte/ragflow_graph_build_cron_step.py index dd68f00..129415c 100644 --- a/src/steps/crm/akte/ragflow_graph_build_cron_step.py +++ b/src/steps/crm/akte/ragflow_graph_build_cron_step.py @@ -18,10 +18,11 @@ Phase B – Neue Graph-Builds anstossen: Setzt graphParsingStatus → 'parsing'. graphParsingStatus-Werte (EspoCRM): - no_graph → noch kein Graph gebaut - parsing → Graph-Build laeuft - complete → Graph fertig (progress == 1.0) - unclean → Graph veraltet (neue Dokumente hochgeladen) + no_graph → noch kein Graph gebaut + parsing → Graph-Build laeuft + complete → Graph fertig (progress == 1.0) + unclean → Graph veraltet (neue Dokumente hochgeladen) + deactivated → Graph-Erstellung dauerhaft deaktiviert (wird nie getriggert) """ from motia import FlowContext, cron @@ -109,6 +110,7 @@ async def handler(input_data: None, ctx: FlowContext) -> None: {'type': 'isNotNull', 'attribute': 'aiCollectionId'}, {'type': 'in', 'attribute': 'aiParsingStatus', 'value': ['complete', 'complete_with_failures']}, + # 'deactivated' bewusst ausgeschlossen – kein Graph-Build fuer deaktivierte Akten {'type': 'in', 'attribute': 'graphParsingStatus', 'value': ['unclean', 'no_graph']}, ],