[8.8] [Fleet] Fix expiration timeout (#157697) (#157714)

# Backport

This will backport the following commits from `main` to `8.8`:
- [[Fleet] Fix expiration timeout
(#157697)](https://github.com/elastic/kibana/pull/157697)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nicolas
Chaulet","email":"nicolas.chaulet@elastic.co"},"sourceCommit":{"committedDate":"2023-05-15T12:58:59Z","message":"[Fleet]
Fix expiration timeout
(#157697)","sha":"80edb844d531065c3f6f394ae4b0fda7c9670214","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","ci:cloud-deploy","v8.8.0","v8.9.0"],"number":157697,"url":"https://github.com/elastic/kibana/pull/157697","mergeCommit":{"message":"[Fleet]
Fix expiration timeout
(#157697)","sha":"80edb844d531065c3f6f394ae4b0fda7c9670214"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/157697","number":157697,"mergeCommit":{"message":"[Fleet]
Fix expiration timeout
(#157697)","sha":"80edb844d531065c3f6f394ae4b0fda7c9670214"}}]}]
BACKPORT-->

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
This commit is contained in:
Kibana Machine 2023-05-15 10:46:07 -04:00 committed by GitHub
parent e7327cf3f4
commit b4c34a32af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ import {
requestDiagnosticsBatch,
} from './request_diagnostics_action_runner';
const REQUEST_DIAGNOSTICS_TIMEOUT_MS = 1000; // 3 hours;
const REQUEST_DIAGNOSTICS_TIMEOUT_MS = 3 * 60 * 1000; // 3 hours;
export async function requestDiagnostics(
esClient: ElasticsearchClient,