Hi All,
We are using enrichment policy to load data from one index to another and it works fine usually but some time our policy execution request is getting stuck without any response.
Whenever it happens I check the running tasks using below request and I don't see any enrichment tasks running. I noticed that upon submission of policy execution request below api returns some task id's but they gets completed/failed after sometime and policy execution request keeps on waiting.
_tasks?detailed=true&actions=*enrich*
I am using Java to execute the policy.
enrichClient.executePolicy(ExecutePolicyRequest.of(e -> e.name(policyName).waitForCompletion(true)));
Is there anything I can do to find the actual completion status of enrichment?