Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 51faf56

Browse files
author
tkostuch
committed
increase timeout
1 parent 1eb57c1 commit 51faf56

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

config/local.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@
1919
"attribute": {
2020
"loadByAttributeMetadata": true
2121
}
22-
}
22+
},
23+
"elasticsearch": {
24+
"requestTimeout": 60000
2325
}

scripts/db.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ const es7RebuildCommand = (cmd) => { // TODO: add parallel processing
2323
console.log(`** Creating temporary index ${tempIndex}`)
2424
es.createIndex(common.db, tempIndex, collectionName, (err) => {
2525
if (err) {
26-
console.log(JSON.stringify(err, null, 2))
26+
console.log(err)
2727
}
2828

2929
console.log(`** We will reindex ${originalIndex} with the current schema`)
3030
es.reIndex(common.db, originalIndex, tempIndex, (err) => {
3131
if (err) {
32-
console.log(JSON.stringify(err, null, 2))
32+
console.log(err)
3333
}
3434

3535
console.log('** Removing the original index')
3636
es.deleteIndex(common.db, originalIndex, (err) => {
3737
if (err) {
38-
console.log(JSON.stringify(err, null, 2))
38+
console.log(err)
3939
}
4040

4141
console.log('** Creating alias')

0 commit comments

Comments
 (0)