We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc5c0f commit 5434201Copy full SHA for 5434201
changelogs/fragments/8771.yml
@@ -0,0 +1,2 @@
1
+fix:
2
+- Fix error handling for ppl jobs API ([#8771](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8771))
src/plugins/query_enhancements/server/search/ppl_async_search_strategy.ts
@@ -59,6 +59,9 @@ export const pplAsyncSearchStrategyProvider = (
59
} else {
60
request.params = { queryId: inProgressQueryId };
61
const queryStatusResponse: any = await pplAsyncJobsFacet.describeQuery(context, request);
62
+
63
+ if (!queryStatusResponse.success) handleFacetError(queryStatusResponse);
64
65
const queryStatus = queryStatusResponse?.data?.status;
66
logger.info(`pplAsyncSearchStrategy: JOB: ${inProgressQueryId} - STATUS: ${queryStatus}`);
67
0 commit comments