ACE and TREX - indexing updated documents with authority data
I have a setup with ACE to calculate needed authorizations and TREX to index those documents and make them searchable, taking into account authorizations.
Case is that when CRM document is being changed and saved, CRM_ACE_DISPATCHER job is launched to recalculate authorizations.
The same time ESH_FU_DEMON* job is launched to index delta (so this updated CRM document) for TREX.
So when ESH_FU_DEMON* is started authorizations for this CRM document may not be ready yet. So TREX may index not all authorizations or none.
This causes that CRM document may not be searchable - not being displayed in TREX results as user may not have authorizations to it (although in fact has).
Any tips how to delay ESH_FU_DEMON* indexing job, or synchronize it with CRM_ACE_DISPATCHER, to run just after each other?