@platformatic/runtime 2.75.1 → 2.75.2

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.
package/config.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
- export type HttpsSchemasPlatformaticDevPlatformaticRuntime2751Json = {
8
+ export type HttpsSchemasPlatformaticDevPlatformaticRuntime2752Json = {
9
9
  [k: string]: unknown;
10
10
  } & {
11
11
  $schema?: string;
package/lib/runtime.js CHANGED
@@ -1423,7 +1423,7 @@ class Runtime extends EventEmitter {
1423
1423
  return health
1424
1424
  }
1425
1425
 
1426
- #setupHealthCheck (config, serviceConfig, workersCount, id, index, worker, errorLabel, timeout) {
1426
+ #setupHealthCheck (config, serviceConfig, workersCount, id, index, worker, errorLabel) {
1427
1427
  // Clear the timeout when exiting
1428
1428
  worker.on('exit', () => clearTimeout(worker[kHealthCheckTimer]))
1429
1429
 
@@ -1496,7 +1496,7 @@ class Runtime extends EventEmitter {
1496
1496
  } else {
1497
1497
  worker[kHealthCheckTimer].refresh()
1498
1498
  }
1499
- }, timeout ?? interval)
1499
+ }, interval)
1500
1500
  }
1501
1501
 
1502
1502
  async #startWorker (
@@ -1564,16 +1564,17 @@ class Runtime extends EventEmitter {
1564
1564
  if (enabled && config.restartOnError > 0) {
1565
1565
  // if gracePeriod is 0, it will be set to 1 to start health checks immediately
1566
1566
  // however, the health event will start when the worker is started
1567
- this.#setupHealthCheck(
1568
- config,
1569
- serviceConfig,
1570
- workersCount,
1571
- id,
1572
- index,
1573
- worker,
1574
- label,
1575
- gracePeriod > 0 ? gracePeriod : 1
1576
- )
1567
+ setTimeout(() => {
1568
+ this.#setupHealthCheck(
1569
+ config,
1570
+ serviceConfig,
1571
+ workersCount,
1572
+ id,
1573
+ index,
1574
+ worker,
1575
+ label
1576
+ )
1577
+ }, gracePeriod > 0 ? gracePeriod : 1).unref()
1577
1578
  }
1578
1579
  } catch (error) {
1579
1580
  // TODO: handle port allocation error here
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "2.75.1",
3
+ "version": "2.75.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -37,12 +37,12 @@
37
37
  "typescript": "^5.5.4",
38
38
  "undici-oidc-interceptor": "^0.5.0",
39
39
  "why-is-node-running": "^2.2.2",
40
- "@platformatic/composer": "2.75.1",
41
- "@platformatic/node": "2.75.1",
42
- "@platformatic/service": "2.75.1",
43
- "@platformatic/sql-graphql": "2.75.1",
44
- "@platformatic/db": "2.75.1",
45
- "@platformatic/sql-mapper": "2.75.1"
40
+ "@platformatic/composer": "2.75.2",
41
+ "@platformatic/db": "2.75.2",
42
+ "@platformatic/node": "2.75.2",
43
+ "@platformatic/service": "2.75.2",
44
+ "@platformatic/sql-graphql": "2.75.2",
45
+ "@platformatic/sql-mapper": "2.75.2"
46
46
  },
47
47
  "dependencies": {
48
48
  "@fastify/accepts": "^5.0.0",
@@ -76,14 +76,14 @@
76
76
  "undici": "^7.0.0",
77
77
  "undici-thread-interceptor": "^0.14.0",
78
78
  "ws": "^8.16.0",
79
- "@platformatic/basic": "2.75.1",
80
- "@platformatic/generators": "2.75.1",
81
- "@platformatic/metrics": "2.75.1",
82
- "@platformatic/itc": "2.75.1",
83
- "@platformatic/telemetry": "2.75.1",
84
- "@platformatic/ts-compiler": "2.75.1",
85
- "@platformatic/utils": "2.75.1",
86
- "@platformatic/config": "2.75.1"
79
+ "@platformatic/basic": "2.75.2",
80
+ "@platformatic/generators": "2.75.2",
81
+ "@platformatic/config": "2.75.2",
82
+ "@platformatic/metrics": "2.75.2",
83
+ "@platformatic/itc": "2.75.2",
84
+ "@platformatic/telemetry": "2.75.2",
85
+ "@platformatic/ts-compiler": "2.75.2",
86
+ "@platformatic/utils": "2.75.2"
87
87
  },
88
88
  "scripts": {
89
89
  "test": "pnpm run lint && borp --concurrency=1 --timeout=1200000 && tsd",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/runtime/2.75.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/runtime/2.75.2.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "type": "object",
5
5
  "properties": {