feat(cron): Update graphParsingStatus documentation and refine query conditions for new Graph builds

This commit is contained in:
bsiggel
2026-03-27 11:29:06 +00:00
parent 88c9df5995
commit 1271e38f2d

View File

@@ -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']},
],