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'.
|
Setzt graphParsingStatus → 'parsing'.
|
||||||
|
|
||||||
graphParsingStatus-Werte (EspoCRM):
|
graphParsingStatus-Werte (EspoCRM):
|
||||||
no_graph → noch kein Graph gebaut
|
no_graph → noch kein Graph gebaut
|
||||||
parsing → Graph-Build laeuft
|
parsing → Graph-Build laeuft
|
||||||
complete → Graph fertig (progress == 1.0)
|
complete → Graph fertig (progress == 1.0)
|
||||||
unclean → Graph veraltet (neue Dokumente hochgeladen)
|
unclean → Graph veraltet (neue Dokumente hochgeladen)
|
||||||
|
deactivated → Graph-Erstellung dauerhaft deaktiviert (wird nie getriggert)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from motia import FlowContext, cron
|
from motia import FlowContext, cron
|
||||||
@@ -109,6 +110,7 @@ async def handler(input_data: None, ctx: FlowContext) -> None:
|
|||||||
{'type': 'isNotNull', 'attribute': 'aiCollectionId'},
|
{'type': 'isNotNull', 'attribute': 'aiCollectionId'},
|
||||||
{'type': 'in', 'attribute': 'aiParsingStatus',
|
{'type': 'in', 'attribute': 'aiParsingStatus',
|
||||||
'value': ['complete', 'complete_with_failures']},
|
'value': ['complete', 'complete_with_failures']},
|
||||||
|
# 'deactivated' bewusst ausgeschlossen – kein Graph-Build fuer deaktivierte Akten
|
||||||
{'type': 'in', 'attribute': 'graphParsingStatus',
|
{'type': 'in', 'attribute': 'graphParsingStatus',
|
||||||
'value': ['unclean', 'no_graph']},
|
'value': ['unclean', 'no_graph']},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user