Merge pull request #551 from omnivore-app/fix/es-timeout

Add request timeout = 30m in elastic client
This commit is contained in:
Jackson Harper 2022-05-04 23:29:46 -07:00 committed by GitHub
commit 1903072d8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,7 @@ const logAppliedMigrations = (
export const INDEX_ALIAS = 'pages_alias'
export const esClient = new Client({
node: process.env.ELASTIC_URL || 'http://localhost:9200',
requestTimeout: 60000 * 30, // 30 minutes
auth: {
username: process.env.ELASTIC_USERNAME || '',
password: process.env.ELASTIC_PASSWORD || '',