Increase index poll timeout to 5 seconds (#138768) (#138800)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 1f5b803d6f)

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
This commit is contained in:
Kibana Machine 2022-08-15 08:49:11 -04:00 committed by GitHub
parent f56b2ce2f1
commit 058c5f7c54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ import {
import { CrawlerLogic } from './crawler/crawler_logic';
import { IndexNameLogic } from './index_name_logic';
const FETCH_INDEX_POLLING_DURATION = 1000; // 1 seconds
const FETCH_INDEX_POLLING_DURATION = 5000; // 1 seconds
const FETCH_INDEX_POLLING_DURATION_ON_FAILURE = 30000; // 30 seconds
type FetchIndexApiValues = Actions<FetchIndexApiParams, FetchIndexApiResponse>;