feat(cron): Update graphParsingStatus documentation and refine query conditions for new Graph builds
This commit is contained in:
@@ -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']},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user