From f3809ea06d2537147efc60a951b6de9ab410a627 Mon Sep 17 00:00:00 2001 From: Bruno Moreira Date: Fri, 17 Jun 2022 15:47:05 -0300 Subject: [PATCH 1/3] Raise up timeouts configurations --- CHANGELOG.md | 6 ++++++ node/index.ts | 4 ++-- node/service.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17bc387..eb9ae25 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/node/index.ts b/node/index.ts index 81e0020..419b3a8 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 d5d6998..75d2b6e 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, From 972bc3fc69a5d1cc63789483dab87f8fb91b1eed Mon Sep 17 00:00:00 2001 From: Bruno Moreira Date: Fri, 17 Jun 2022 15:49:28 -0300 Subject: [PATCH 2/3] Removeu useless bash script --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index dbb78e0..fcc6be7 100644 --- a/manifest.json +++ b/manifest.json @@ -33,7 +33,7 @@ "admin": "0.x" }, "scripts": { - "prereleasy": "bash lint.sh" + }, "credentialType": "absolute", "policies": [ From cfdc4edfba97856dbea3850d27b332ccbf0e4510 Mon Sep 17 00:00:00 2001 From: Bruno Moreira Date: Fri, 17 Jun 2022 15:49:45 -0300 Subject: [PATCH 3/3] Release v0.49.0-beta.0 --- manifest.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index fcc6be7..9ff88f9 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": { - - }, + "scripts": {}, "credentialType": "absolute", "policies": [ {