diff --git a/CHANGELOG.md b/CHANGELOG.md index 17bc3876..eb9ae250 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added + +- Change default timeout for clients to `5000 ms` +- Raise service timeout configuration to `10 s` +- Reduce retries to 2 + ## [0.48.0] - 2022-06-15 ### Added diff --git a/manifest.json b/manifest.json index dbb78e01..9ff88f96 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "affiliates", "vendor": "vtex", - "version": "0.48.0", + "version": "0.49.0-beta.0", "title": "Affiliates", "description": "App that adds support for affiliates on IO stores", "mustUpdateAt": "2018-01-04", @@ -32,9 +32,7 @@ "messages": "1.x", "admin": "0.x" }, - "scripts": { - "prereleasy": "bash lint.sh" - }, + "scripts": {}, "credentialType": "absolute", "policies": [ { diff --git a/node/index.ts b/node/index.ts index 81e00204..419b3a8c 100644 --- a/node/index.ts +++ b/node/index.ts @@ -34,7 +34,7 @@ import { getAffiliate } from './resolvers/getAffiliate' import { fieldResolvers } from './resolvers/fieldResolvers' import { getAffiliateByEmail } from './resolvers/getAffiliateByEmail' -const TIMEOUT_MS = 1000 +const TIMEOUT_MS = 5000 // This is the configuration for clients available in `ctx.clients`. const clients: ClientsConfig = { @@ -43,7 +43,7 @@ const clients: ClientsConfig = { options: { // All IO Clients will be initialized with these options, unless otherwise specified. default: { - retries: 3, + retries: 2, timeout: TIMEOUT_MS, }, }, diff --git a/node/service.json b/node/service.json index d5d6998e..75d2b6ed 100644 --- a/node/service.json +++ b/node/service.json @@ -1,7 +1,7 @@ { "memory": 256, "ttl": 10, - "timeout": 2, + "timeout": 10, "minReplicas": 2, "maxReplicas": 4, "workers": 1,