Skip to content

Commit

Permalink
Update Algolia task: added timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteMX committed Aug 10, 2018
1 parent d968494 commit a956f55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion _gulp/algolia.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ const indexFiles = (opts) => {
if (DEBUG) {
return;
}
const client = algoliasearch(opts.algolia_app_id, process.env.ALGOLIA_WRITE_KEY);
const client = algoliasearch(opts.algolia_app_id, process.env.ALGOLIA_WRITE_KEY, {
timeout: 60000
});
const algoliaIndex = client.initIndex(opts.algolia_index);
log(`Create settings for ${opts.algolia_index}`);
algoliaIndex.setSettings({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"license": "CC BY 4.0.",
"devDependencies": {
"algoliasearch": "^3.24.3",
"algoliasearch": "^3.30.0",
"async": "^2.5.0",
"bluebird": "^3.5.0",
"browser-sync": "^2.18.13",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ ajv@^5.1.0:
fast-json-stable-stringify "^2.0.0"
json-schema-traverse "^0.3.0"

algoliasearch@^3.24.3:
version "3.24.12"
resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-3.24.12.tgz#7a0d133b7c80b8543319fe5cdfd6398c1e74e204"
algoliasearch@^3.30.0:
version "3.30.0"
resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-3.30.0.tgz#355585e49b672e5f71d45b9c2b371ecdff129cd1"
dependencies:
agentkeepalive "^2.2.0"
debug "^2.6.8"
Expand Down

0 comments on commit a956f55

Please sign in to comment.