@naturalcycles/backend-lib 6.3.0 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,11 +17,11 @@ export declare const deployHealthCheckYargsOptions: {
17
17
  };
18
18
  readonly thresholdUnhealthy: {
19
19
  readonly type: "number";
20
- readonly default: 3;
20
+ readonly default: 8;
21
21
  };
22
22
  readonly maxTries: {
23
23
  readonly type: "number";
24
- readonly default: 20;
24
+ readonly default: 30;
25
25
  };
26
26
  readonly timeoutSec: {
27
27
  readonly type: "number";
@@ -13,11 +13,11 @@ exports.deployHealthCheckYargsOptions = {
13
13
  },
14
14
  thresholdUnhealthy: {
15
15
  type: 'number',
16
- default: 3,
16
+ default: 8,
17
17
  },
18
18
  maxTries: {
19
19
  type: 'number',
20
- default: 20,
20
+ default: 30,
21
21
  },
22
22
  timeoutSec: {
23
23
  type: 'number',
@@ -57,7 +57,7 @@ const inspectOpt = {
57
57
  * Fails after maxTries.
58
58
  */
59
59
  async function deployHealthCheck(url, opt = {}) {
60
- const { thresholdHealthy = 5, thresholdUnhealthy = 3, maxTries = 30, timeoutSec = 30, intervalSec = 1, logOnFailure = true, logOnSuccess, gaeProject, gaeService, gaeVersion, } = opt;
60
+ const { thresholdHealthy = 5, thresholdUnhealthy = 8, maxTries = 30, timeoutSec = 30, intervalSec = 1, logOnFailure = true, logOnSuccess, gaeProject, gaeService, gaeVersion, } = opt;
61
61
  let attempt = 0;
62
62
  let countHealthy = 0;
63
63
  let countUnhealthy = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
- "version": "6.3.0",
3
+ "version": "6.4.0",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "build": "dev-lib build",
@@ -50,9 +50,6 @@
50
50
  "fastify": "^5",
51
51
  "jest": "^29"
52
52
  },
53
- "resolutions": {
54
- "long": "5.2.4"
55
- },
56
53
  "files": [
57
54
  "dist",
58
55
  "cfg",
@@ -30,11 +30,11 @@ export const deployHealthCheckYargsOptions = {
30
30
  },
31
31
  thresholdUnhealthy: {
32
32
  type: 'number',
33
- default: 3,
33
+ default: 8,
34
34
  },
35
35
  maxTries: {
36
36
  type: 'number',
37
- default: 20,
37
+ default: 30,
38
38
  },
39
39
  timeoutSec: {
40
40
  type: 'number',
@@ -81,7 +81,7 @@ export async function deployHealthCheck(
81
81
  ): Promise<void> {
82
82
  const {
83
83
  thresholdHealthy = 5,
84
- thresholdUnhealthy = 3,
84
+ thresholdUnhealthy = 8,
85
85
  maxTries = 30,
86
86
  timeoutSec = 30,
87
87
  intervalSec = 1,